3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "1$"; $cc = 1337; $bb=42; $k2 = "00000000000000000000000000000000000{$cc}$"; var_dump(strlen($k2) == $bb); var_dump(preg_match('/^\d+$/', $k2)); var_dump(!is_numeric($k2)); var_dump($k2 == $cc); $cc = '11111111111111111111111111'; var_dump(substr($cc, $bb)); var_dump(sha1($cc)); var_dump(sha1(1337)); $a = 1;

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.1.90.0040.00417.63
8.1.80.0000.00717.51
8.1.70.0000.00717.60
8.1.60.0000.00817.70
8.1.50.0040.00417.61
8.1.40.0000.00817.52
8.1.30.0040.00417.86
8.1.20.0000.00817.80
8.1.10.0000.00817.66
8.1.00.0000.00717.64
8.0.220.0070.00016.93
8.0.210.0070.00017.00
8.0.200.0040.00417.09
8.0.190.0000.00817.14
8.0.180.0070.00017.07
8.0.170.0000.00916.93
8.0.160.0040.00417.02
8.0.150.0000.00717.02
8.0.140.0000.00717.01
8.0.130.0030.00313.50
8.0.120.0030.00517.01
8.0.110.0050.00217.02
8.0.100.0070.00016.92
8.0.90.0050.00216.89
8.0.80.0090.00917.04
8.0.70.0040.00416.89
8.0.60.0040.00416.95
8.0.50.0050.00317.02
8.0.30.0120.00517.28
8.0.20.0120.01117.40
8.0.10.0050.00217.18
8.0.00.0090.01017.12
7.4.300.0030.00316.81
7.4.290.0070.00016.76
7.4.280.0070.00016.71
7.4.270.0040.00416.72
7.4.260.0040.00716.65
7.4.250.0000.00716.61
7.4.240.0070.00016.79
7.4.230.0070.00016.81
7.4.220.0040.00416.55
7.4.210.0120.00416.74
7.4.200.0040.00416.60
7.4.160.0130.00516.66
7.4.140.0090.01017.86
7.4.130.0100.00716.82
7.4.120.0090.01116.67
7.4.110.0070.01016.82
7.4.100.0090.01516.60
7.4.90.0100.00716.70
7.4.80.0110.00619.39
7.4.70.0070.01016.65
7.4.60.0030.01216.64
7.4.50.0040.01516.59
7.4.40.0070.01016.71
7.4.10.0110.00814.95
7.4.00.0070.00815.13
7.3.330.0030.00313.31
7.3.320.0000.00513.26
7.3.310.0030.00316.57
7.3.300.0070.00016.45
7.3.290.0030.00316.41
7.3.280.0110.00616.41
7.3.260.0110.00816.56
7.3.240.0130.00716.45
7.3.230.0140.00616.75
7.3.210.0140.00316.47
7.3.200.0120.00616.51
7.3.190.0120.00916.54
7.3.180.0100.00816.64
7.3.170.0140.00316.34
7.3.160.0130.00316.45
7.3.130.0100.00714.93
7.3.120.0070.01114.84
7.3.110.0000.01415.19
7.3.100.0030.00915.06
7.3.90.0060.00315.04
7.3.80.0070.00715.08
7.3.70.0060.00614.94
7.3.60.0090.00614.70
7.3.50.0090.00014.80
7.3.40.0000.01214.91
7.3.30.0000.01514.70
7.3.20.0060.00616.41
7.3.10.0090.00516.75
7.3.00.0040.01316.84
7.2.330.0150.00616.77
7.2.320.0130.01016.51
7.2.310.0040.01416.54
7.2.300.0090.00616.74
7.2.290.0060.01116.72
7.2.260.0070.01114.90
7.2.250.0110.00715.16
7.2.240.0060.00915.07
7.2.230.0040.00815.31
7.2.220.0060.00915.07
7.2.210.0070.00715.33
7.2.200.0030.01015.02
7.2.190.0070.00715.25
7.2.180.0030.00715.21
7.2.170.0090.00315.12
7.2.160.0110.00715.16
7.2.150.0110.00016.98
7.2.140.0000.01717.14
7.2.130.0080.00516.96
7.2.120.0030.01116.87
7.2.110.0290.00916.24
7.2.100.0160.00616.24
7.2.90.0100.00516.22
7.2.80.0130.01016.46
7.2.70.1020.00716.46
7.2.60.0080.01016.49
7.2.50.0120.01016.24
7.2.40.1160.00716.48
7.2.30.1420.00816.30
7.2.20.0380.01016.42
7.2.10.0650.00716.22
7.2.00.0650.00916.30
7.1.330.0060.00615.96
7.1.320.0000.01715.92
7.1.310.0030.00915.92
7.1.300.0030.01016.14
7.1.290.0090.00316.10
7.1.280.0080.00815.77
7.1.270.0070.01015.94
7.1.260.0110.00315.91
7.1.250.0060.00615.99
7.1.240.0070.00415.89
7.1.230.0100.00615.00
7.1.220.0450.01015.16
7.1.210.0670.00814.92
7.1.200.0450.00814.99
7.1.190.0110.00815.10
7.1.180.0090.00914.90
7.1.170.2420.00915.01
7.1.160.1160.00615.09
7.1.150.1090.00715.05
7.1.140.0220.00515.02
7.1.130.0800.00615.15
7.1.120.0980.00815.08
7.1.110.1400.00815.19
7.1.100.1050.01315.14
7.1.90.1200.00615.12
7.1.80.1190.00514.97
7.1.70.1310.00214.94
7.1.60.1520.00923.95
7.1.50.1970.01023.84
7.1.40.1800.00823.86
7.1.30.2110.00823.94
7.1.20.1830.00824.12
7.1.10.2120.00515.11
7.1.00.1370.00715.04
7.0.330.0070.00715.62
7.0.320.0080.00315.48
7.0.310.0030.01415.42
7.0.300.0000.01415.14
7.0.290.0040.00815.44
7.0.280.0060.01015.41
7.0.270.0100.00615.57
7.0.260.0080.00415.62
7.0.250.0100.00015.77
7.0.240.0030.01015.46
7.0.230.0040.00415.71
7.0.220.0070.00315.38
7.0.210.0030.00915.59
7.0.200.0070.00315.56
7.0.190.0100.00715.73
7.0.180.0080.00815.36
7.0.170.0030.00715.35
7.0.160.0030.00915.70
7.0.150.0040.00715.61
7.0.140.0070.01015.58
7.0.130.0030.00915.55
7.0.120.0070.00715.67
7.0.110.0070.00715.32
7.0.100.0040.00815.40
7.0.90.0030.01015.48
7.0.80.0070.00415.75
7.0.70.0120.00315.55
7.0.60.0030.01415.67
7.0.50.0070.00315.86
7.0.40.0030.01013.70
7.0.30.0070.00713.64
7.0.20.0040.00413.67
7.0.10.0110.00313.64
7.0.00.0030.00613.55
5.6.400.0040.00913.96
5.6.390.0040.01114.37
5.6.380.0090.00414.31
5.6.370.0130.00314.21
5.6.360.0070.00714.14
5.6.350.0040.00814.17
5.6.340.0120.00414.31
5.6.330.0000.01014.38
5.6.320.0040.01214.36
5.6.310.0040.01214.53
5.6.300.0090.00314.27
5.6.290.0070.00314.48
5.6.280.0060.00614.37
5.6.270.0030.01414.41
5.6.260.0110.00414.49
5.6.250.0130.00314.61
5.6.240.0060.00914.39
5.6.230.0040.01214.37
5.6.220.0110.00714.33
5.6.210.0110.00614.44
5.6.200.0030.00914.41
5.6.190.0060.00614.60
5.6.180.0040.00714.29
5.6.170.0000.01014.09
5.6.160.0000.00814.46
5.6.150.0130.00314.55
5.6.140.0060.00914.16
5.6.130.0080.00414.07
5.6.120.0070.00314.22
5.6.110.0060.01214.36
5.6.100.0100.00714.47
5.6.90.0060.00914.39
5.6.80.0040.01114.06
5.6.70.0070.00714.30
5.6.60.0060.00814.07
5.6.50.0070.01014.32
5.6.40.0040.00414.25
5.6.30.0090.00614.49
5.6.20.0000.01414.43
5.6.10.0070.00714.05
5.6.00.0100.00313.99

preferences:
22.2 ms | 406 KiB | 5 Q