3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classes = get_declared_classes(); foreach ( $classes as $clazz ) { $r = new ReflectionClass( $clazz ); if ( !$r->isInstantiable() ) { continue; } try { new $clazz(); } catch ( ArgumentCountError|TypeError $e ) { // Nothing } catch ( Throwable $e ) { echo $clazz . ": "; echo get_class( $e ) . ': ' . $e->getMessage() . "\n"; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.140.0100.01421.74
8.4.130.0090.00521.66
8.4.120.0160.00927.68
8.4.110.0130.00825.55
8.4.100.0050.00522.73
8.4.90.0130.01022.61
8.4.80.0060.00424.31
8.4.70.0150.00421.85
8.4.60.0180.00222.48
8.4.50.0070.00622.54
8.4.40.0160.00721.77
8.4.30.0200.00421.15
8.4.20.0240.00021.36
8.4.10.0150.00621.44
8.3.260.0050.00520.88
8.3.250.0100.01222.23
8.3.240.0140.00821.12
8.3.230.0230.00820.60
8.3.220.0150.00622.56
8.3.210.0080.01522.20
8.3.200.0120.01120.29
8.3.190.0140.00821.02
8.3.180.0160.00720.48
8.3.170.0130.00820.24
8.3.160.0130.01020.35
8.3.150.0210.00020.23
8.3.140.0160.00720.48
8.3.130.0150.00920.16
8.3.120.0190.00320.17
8.3.110.0210.00020.03
8.3.100.0180.00420.07
8.3.90.0230.00320.44
8.3.80.0220.00020.26
8.3.70.0170.00420.16
8.3.60.0210.00020.22
8.3.50.0160.00620.25
8.3.40.0200.00820.90
8.3.30.0070.01421.23
8.3.20.0110.00820.90
8.3.10.0150.00621.13
8.3.00.0130.00020.97
8.2.290.0160.00524.28
8.2.280.0090.01222.52
8.2.270.0190.00020.13
8.2.260.0110.00720.28
8.2.250.0190.00020.66
8.2.240.0110.00820.32
8.2.230.0150.00520.30
8.2.220.0150.00320.17
8.2.210.0090.00920.48
8.2.200.0130.00519.98
8.2.190.0150.00320.84
8.2.180.0150.00520.20
8.2.170.0120.00621.46
8.2.160.0170.00321.21
8.2.150.0170.00621.05
8.2.140.0270.00621.07
8.2.130.0280.00021.00
8.2.120.0250.00721.00
8.2.110.0220.00321.15
8.2.100.0220.00420.88
8.2.90.0230.00921.15
8.2.80.0200.00021.31
8.2.70.0230.00521.08
8.2.60.0120.01021.03
8.2.50.0050.01421.18
8.2.40.0200.00020.99
8.2.30.0120.00621.22
8.2.20.0130.00821.14
8.2.10.0150.00321.09
8.2.00.0130.00820.93
8.1.320.0180.00419.78

preferences:
54.36 ms | 403 KiB | 5 Q