3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('OK', function_exists('ok')); var_dump( OK ); //Fatal error: Constant expression contains invalid operations in /in/tOnQh on line 7 //Process exited with code 255. //class A{ const OK = function_exists('ok'); } //var_dump( A::OK );

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.3.60.0000.01518.43
8.3.50.0090.01216.37
8.3.40.0120.00318.34
8.3.30.0090.00618.42
8.3.20.0040.00420.77
8.3.10.0040.00421.82
8.3.00.0060.00319.10
8.2.180.0140.00425.92
8.2.170.0120.00322.96
8.2.160.0070.00720.30
8.2.150.0000.00824.18
8.2.140.0100.00024.66
8.2.130.0050.00220.56
8.2.120.0080.00026.35
8.2.110.0060.00319.45
8.2.100.0040.00817.59
8.2.90.0030.00618.15
8.2.80.0080.00018.04
8.2.70.0050.00317.68
8.2.60.0000.00718.22
8.2.50.0000.00918.10
8.2.40.0050.00322.20
8.2.30.0000.00819.21
8.2.20.0040.00418.01
8.2.10.0040.00417.98
8.2.00.0040.00317.90
8.1.280.0170.00325.92
8.1.270.0040.00423.88
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0000.00919.44
8.1.230.0030.00820.97
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0090.00018.91
8.1.160.0030.00318.94
8.1.150.0000.00720.61
8.1.140.0040.00419.41
8.1.130.0000.00818.81
8.1.120.0000.00717.30
8.1.110.0020.00517.41
8.1.100.0000.00817.40
8.1.90.0060.00317.41
8.1.80.0040.00717.36
8.1.70.0070.00017.39
8.1.60.0050.00317.50
8.1.50.0000.00817.51
8.1.40.0000.01017.50
8.1.30.0000.00717.58
8.1.20.0090.00317.53
8.1.10.0040.00417.36
8.1.00.0000.00717.29
8.0.300.0050.00319.87
8.0.290.0040.00416.63
8.0.280.0000.00718.26
8.0.270.0030.00317.06
8.0.260.0030.00316.62
8.0.250.0000.00616.77
8.0.240.0000.00816.93
8.0.230.0000.00716.76
8.0.220.0000.00716.68
8.0.210.0070.00016.86
8.0.200.0040.00416.77
8.0.190.0040.00416.84
8.0.180.0070.00016.75
8.0.170.0000.00716.73
8.0.160.0000.00816.84
8.0.150.0000.00716.72
8.0.140.0040.00416.81
8.0.130.0060.00013.29
8.0.120.0000.00716.63
8.0.110.0070.00016.71
8.0.100.0000.00816.66
8.0.90.0040.00416.85
8.0.80.0070.01716.73
8.0.70.0000.00716.79
8.0.60.0000.00716.93
8.0.50.0000.00716.76
8.0.30.0110.00716.84
8.0.20.0120.00917.40
8.0.10.0040.00416.82
8.0.00.0080.00816.58
7.4.330.0000.00515.55
7.4.320.0030.00316.47
7.4.300.0030.00316.53
7.4.290.0050.00316.43
7.4.280.0040.00416.46
7.4.270.0000.00716.54
7.4.260.0000.00716.37
7.4.250.0000.00716.28
7.4.240.0030.00616.53
7.4.230.0000.00816.45
7.4.220.0120.00616.53
7.4.210.0070.01016.39
7.4.200.0040.00416.62
7.4.160.0060.00916.45
7.4.150.0060.01117.40
7.4.140.0120.00817.86
7.4.130.0120.00616.21
7.4.120.0050.01216.43
7.4.110.0060.01216.30
7.4.100.0080.00916.44
7.4.90.0130.01016.56
7.4.80.0120.00919.39
7.4.70.0060.00916.65
7.4.60.0060.01016.44
7.4.50.0060.00916.47
7.4.40.0050.01716.21
7.4.30.0100.00716.20
7.4.00.0070.01014.79
7.3.330.0080.00013.00
7.3.320.0050.00013.01
7.3.310.0060.00315.90
7.3.300.0070.00015.96
7.3.290.0040.01016.11
7.3.280.0070.01016.14
7.3.270.0090.00917.40
7.3.260.0100.00716.55
7.3.250.0100.00816.29
7.3.240.0070.01216.28
7.3.230.0030.01416.43
7.3.210.0030.01316.28
7.3.200.0070.01116.29
7.3.190.0030.01316.37
7.3.180.0120.00916.17
7.3.170.0040.01216.25
7.3.160.0110.00416.36
7.3.10.0050.00716.52
7.3.00.0030.00916.55
7.2.330.0090.00916.54
7.2.320.0030.01416.48
7.2.310.0090.00916.32
7.2.300.0120.00916.35
7.2.290.0160.00016.48
7.2.130.0070.00616.83
7.2.120.0050.00816.76
7.2.110.0060.00716.57
7.2.100.0120.00316.66
7.2.90.0040.00916.78
7.2.80.0040.00616.71
7.2.70.0020.01116.82
7.2.60.0070.00616.70
7.2.50.0060.00816.71
7.2.40.0030.01016.76
7.2.30.0030.01016.85
7.2.20.0060.00716.69
7.2.10.0080.00416.64
7.2.00.0080.00917.27
7.1.250.0020.01115.50
7.1.200.0060.00615.65
7.1.100.0000.01217.86
7.1.70.0000.00816.82
7.1.60.2370.02032.96
7.1.50.2900.02332.93
7.1.40.3830.01032.50
7.1.30.3700.02332.53
7.1.20.0200.02332.62
7.1.10.3000.01014.87
7.1.00.0000.02014.77
7.0.200.1800.01714.94
7.0.190.2930.01014.72
7.0.180.2070.01014.51
7.0.170.0270.01014.30
7.0.160.0830.01014.24
7.0.150.2370.01314.57
7.0.140.2600.00714.33
7.0.130.0570.01314.52
7.0.120.0300.01314.75
7.0.110.3130.01014.40
7.0.100.2700.01314.35
7.0.90.2800.00314.09
7.0.80.0130.01014.29
7.0.70.2570.01014.22
7.0.60.0030.01314.16
7.0.50.2030.01714.31
7.0.40.3200.01314.55
7.0.30.0100.01014.73
7.0.20.0100.01014.52
7.0.10.0030.02014.40
7.0.00.0100.00714.52

preferences:
43.71 ms | 400 KiB | 5 Q