3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($severity, $message, $file, $line) { if (!(error_reporting() & $severity)) { // This error code is not included in error_reporting return; } throw new ErrorException($message, 0, $severity, $file, $line); } set_error_handler("exception_error_handler"); $o=new STDClass(); $o->f=function(){ echo "i ran!"; }; try{ call_user_func($o->f,[]); }catch(Throwable $ex){ echo 'didn\'t work: $o->f()',PHP_EOL; }

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.5.00.0100.01321.71
8.4.150.0030.00014.05
8.4.140.0130.00717.56
8.4.130.0060.00322.22
8.4.120.0110.00422.37
8.4.110.0160.00418.93
8.4.100.0090.01117.98
8.4.90.0100.01020.49
8.4.80.0070.01320.60
8.4.70.0110.00318.97
8.4.60.0120.00920.53
8.4.50.0070.01318.73
8.4.40.0000.00919.27
8.4.30.0090.00020.34
8.4.20.0100.01017.63
8.4.10.0090.00019.68
8.3.280.0110.00818.28
8.3.270.0120.01116.53
8.3.260.0110.00816.62
8.3.250.0100.00919.16
8.3.240.0040.00416.54
8.3.230.0070.00416.66
8.3.220.0100.00819.00
8.3.210.0100.00616.78
8.3.200.0060.00316.70
8.3.190.0090.00917.10
8.3.180.0120.00619.05
8.3.170.0110.00717.15
8.3.160.0150.00416.82
8.3.150.0160.00317.32
8.3.140.0060.01217.04
8.3.130.0080.00018.26
8.3.120.0050.00520.54
8.3.110.0030.00618.43
8.3.100.0070.00718.21
8.3.90.0040.01318.66
8.3.80.0000.01117.97
8.3.70.0150.00716.49
8.3.60.0070.01418.43
8.3.50.0090.00723.77
8.3.40.0080.00818.83
8.3.30.0030.01718.97
8.3.20.0050.00320.90
8.3.10.0000.00821.87
8.3.00.0000.00723.66
8.2.290.0110.00717.37
8.2.280.0090.00920.21
8.2.270.0060.01216.51
8.2.260.0040.01118.96
8.2.250.0040.00417.20
8.2.240.0110.00817.03
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0070.00726.77
8.2.200.0030.00718.41
8.2.190.0040.01116.58
8.2.180.0120.00918.41
8.2.170.0060.00922.96
8.2.160.0070.00721.21
8.2.150.0090.00924.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0000.00920.39
8.2.100.0080.00317.91
8.2.90.0000.00817.91
8.2.80.0050.00219.40
8.2.70.0060.00317.63
8.2.60.0050.00317.50
8.2.50.0040.00418.05
8.2.40.0000.00919.94
8.2.30.0000.00719.52
8.2.20.0000.00717.96
8.2.10.0030.00519.18
8.2.00.0040.00419.20
8.1.330.0110.00915.93
8.1.320.0080.00716.40
8.1.310.0070.00316.73
8.1.300.0100.01016.01
8.1.290.0110.00018.88
8.1.280.0110.01125.92
8.1.270.0050.00320.66
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00022.19
8.1.230.0120.00020.89
8.1.220.0030.00517.74
8.1.210.0000.00819.00
8.1.200.0000.00817.55
8.1.190.0080.00017.38
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0040.00418.79
8.1.150.0030.00618.89
8.1.140.0030.00320.84
8.1.130.0000.00720.24
8.1.120.0040.00417.40
8.1.110.0040.00417.36
8.1.100.0070.00017.51
8.1.90.0070.00017.46
8.1.80.0040.00417.40
8.1.70.0000.00717.46
8.1.60.0040.00417.43
8.1.50.0020.00517.55
8.1.40.0080.00017.53
8.1.30.0040.00417.72
8.1.20.0080.00017.69
8.1.10.0040.00717.49
8.1.00.0100.00017.57
8.0.300.0100.00319.88
8.0.290.0060.00316.75
8.0.280.0070.00018.46
8.0.270.0030.00317.89
8.0.260.0000.00619.95
8.0.250.0040.00416.90
8.0.240.0040.00416.73
8.0.230.0030.00316.80
8.0.220.0000.00816.75
8.0.210.0030.00316.81
8.0.200.0000.00816.93
8.0.190.0000.00817.00
8.0.180.0000.00816.94
8.0.170.0000.00916.93
8.0.160.0040.00416.87
8.0.150.0000.00716.82
8.0.140.0050.00316.79
8.0.130.0000.00613.36
8.0.120.0000.00716.88
8.0.110.0000.00716.78
8.0.100.0000.00716.84
8.0.90.0060.00316.88
8.0.80.0060.01316.83
8.0.70.0000.00816.87
8.0.60.0040.00416.77
8.0.50.0000.00716.96
8.0.30.0100.00717.13
8.0.20.0060.01317.16
8.0.10.0080.00016.88
8.0.00.0100.01016.75
7.4.330.0000.00515.55
7.4.320.0000.00716.61
7.4.300.0000.00616.54
7.4.290.0080.00016.50
7.4.280.0000.00716.50
7.4.270.0030.00316.50
7.4.260.0060.00013.27
7.4.250.0030.00316.52
7.4.240.0030.00416.48
7.4.230.0000.00716.42
7.4.220.0030.00316.66
7.4.210.0070.00716.58
7.4.200.0000.00716.59
7.4.130.0050.01316.38
7.4.120.0140.00816.64
7.4.110.0070.01016.57
7.4.100.0030.01716.33
7.4.90.0030.01316.45
7.4.80.0160.00719.39
7.4.70.0100.00716.60
7.4.60.0140.00716.63
7.4.50.0060.00916.36
7.4.40.0040.01216.43
7.4.20.0150.00316.60
7.4.10.0140.00916.02
7.4.00.0000.02016.64
7.3.330.0030.00616.28
7.3.320.0020.00213.33
7.3.310.0000.00716.22
7.3.300.0030.00316.17
7.3.290.0090.00616.27
7.3.260.0110.00716.39
7.3.230.0100.01316.20
7.3.210.0060.00916.30
7.3.200.0120.00516.59
7.3.190.0060.00916.51
7.3.180.0040.01216.62
7.3.170.0060.01216.32
7.3.160.0090.01316.32
7.3.140.0030.01516.18
7.3.130.0170.00716.57
7.3.120.0060.01516.19
7.3.110.0030.01316.30
7.3.100.0090.01216.18
7.3.90.0130.00316.25
7.3.80.0160.00616.21
7.3.70.0070.01016.32
7.3.60.0030.01816.17
7.3.50.0120.01216.42
7.3.40.0030.01316.32
7.3.30.0070.01016.33
7.3.20.0130.00916.44
7.3.10.0170.00716.26
7.3.00.0140.00616.28
7.2.330.0100.01416.76
7.2.320.0090.01516.50
7.2.310.0100.00716.83
7.2.300.0060.01216.84
7.2.290.0040.01216.78
7.2.270.0120.01216.50
7.2.260.0070.01616.43
7.2.250.0120.01216.27
7.2.240.0030.02116.29
7.2.230.0090.01416.73
7.2.220.0140.00616.79
7.2.210.0090.00916.56
7.2.200.0090.00916.41
7.2.190.0150.00616.40
7.2.180.0160.00616.42
7.2.170.0110.00616.44
7.2.160.0140.00716.51
7.2.150.0150.00916.68
7.2.140.0110.00716.54
7.2.130.0070.01616.63
7.2.120.0080.01516.72
7.2.110.0070.01516.39
7.2.100.0060.01616.53
7.2.90.0150.00916.48
7.2.80.0030.02016.51
7.2.70.0060.01216.52
7.2.60.0170.00716.74
7.2.50.0140.00416.84
7.2.40.0230.00016.37
7.2.30.0100.01016.48
7.2.20.0100.00716.37
7.2.10.0110.00716.81
7.2.00.0370.01316.39

preferences:
165.47 ms | 403 KiB | 5 Q