3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $callback; public function test() { call_user_func($this->callback, new Exception); } } class Bar { public function trololol() { $bar = new Bar; $bar->callback = function (Exception $e) { var_dump($this); }; $bar->test(); } } (new Bar)->trololol();

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.70.0190.00316.86
8.3.60.0150.00016.75
8.3.50.0100.00922.02
8.3.40.0070.00718.96
8.3.30.0150.00018.84
8.3.20.0090.00020.20
8.3.10.0040.00423.38
8.3.00.0040.00419.97
8.2.180.0180.00416.63
8.2.170.0070.00722.96
8.2.160.0070.00720.47
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00321.00
8.2.120.0040.00426.35
8.2.110.0030.00721.03
8.2.100.0110.00017.80
8.2.90.0000.00819.18
8.2.80.0030.00517.97
8.2.70.0060.00317.74
8.2.60.0080.00018.03
8.2.50.0000.00818.07
8.2.40.0040.00422.28
8.2.30.0040.00420.49
8.2.20.0000.00817.80
8.2.10.0000.00718.08
8.2.00.0040.00418.07
8.1.280.0100.00325.92
8.1.270.0030.00620.25
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0050.00322.10
8.1.230.0080.00319.48
8.1.220.0050.00317.79
8.1.210.0070.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.00
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0000.00720.77
8.1.150.0000.00718.89
8.1.140.0090.00019.52
8.1.130.0070.00017.58
8.1.120.0000.00717.38
8.1.110.0000.01117.41
8.1.100.0040.00417.39
8.1.90.0040.00417.50
8.1.80.0000.00817.39
8.1.70.0030.00617.27
8.1.60.0060.00317.58
8.1.50.0040.00417.41
8.1.40.0040.00417.60
8.1.30.0000.00817.56
8.1.20.0070.00017.66
8.1.10.0020.00517.59
8.1.00.0000.00717.50
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0080.00018.38
8.0.270.0030.00317.25
8.0.260.0000.00717.11
8.0.250.0030.00516.92
8.0.240.0000.00717.00
8.0.230.0030.00516.82
8.0.220.0000.00716.91
8.0.210.0030.00516.79
8.0.200.0000.00716.96
8.0.190.0000.00916.99
8.0.180.0080.00017.02
8.0.170.0070.00016.98
8.0.160.0000.00716.97
8.0.150.0030.00616.86
8.0.140.0000.00816.88
8.0.130.0060.00013.31
8.0.120.0030.00516.93
8.0.110.0090.00016.92
8.0.100.0050.00316.93
8.0.90.0030.00516.84
8.0.80.0030.01616.96
8.0.70.0040.00416.75
8.0.60.0040.00417.00
8.0.50.0040.00416.90
8.0.30.0130.00617.04
8.0.20.0090.01217.40
8.0.10.0070.00016.94
8.0.00.0110.00716.76
7.4.330.0050.00016.81
7.4.320.0000.00716.57
7.4.300.0000.00616.48
7.4.290.0030.00316.60
7.4.280.0070.00016.58
7.4.270.0070.00016.48
7.4.260.0050.00316.57
7.4.250.0040.00416.56
7.4.240.0060.00216.54
7.4.230.0030.00316.48
7.4.220.0100.00716.61
7.4.210.0070.00716.49
7.4.200.0030.00316.30
7.4.160.0130.00316.41
7.4.150.0140.00317.40
7.4.140.0100.01017.86
7.4.130.0070.01516.49
7.4.120.0100.01016.61
7.4.110.0070.01116.57
7.4.100.0130.01016.49
7.4.90.0030.01316.40
7.4.80.0100.00719.39
7.4.70.0100.01016.41
7.4.60.0180.00416.54
7.4.50.0150.00016.42
7.4.40.0070.01616.64
7.4.30.0030.01516.49
7.4.00.0060.00915.05
7.3.330.0000.00613.22
7.3.320.0050.00013.29
7.3.310.0040.00416.18
7.3.300.0000.00716.21
7.3.290.0070.01016.35
7.3.280.0080.00816.37
7.3.270.0040.01417.40
7.3.260.0090.00916.30
7.3.250.0090.00916.41
7.3.240.0080.00816.39
7.3.230.0160.00016.39
7.3.210.0050.01116.54
7.3.200.0030.01316.30
7.3.190.0060.01116.37
7.3.180.0070.01016.38
7.3.170.0040.01816.42
7.3.160.0100.00616.41
7.3.120.0030.01215.86
7.3.110.0100.00516.00
7.3.100.0080.00815.97
7.3.90.0030.01015.93
7.3.80.0020.00816.02
7.3.70.0090.00515.91
7.3.60.0090.00515.90
7.3.50.0050.00715.88
7.3.40.0090.00515.99
7.3.30.0080.00516.04
7.3.20.0070.00816.87
7.3.10.0060.00616.76
7.3.00.0060.00716.80
7.2.330.0060.01316.62
7.2.320.0170.00616.62
7.2.310.0130.00316.46
7.2.300.0130.00316.45
7.2.290.0160.00616.45
7.2.250.0060.01015.00
7.2.240.0070.01016.18
7.2.230.0020.01416.13
7.2.220.0050.00716.02
7.2.210.0070.00816.03
7.2.200.0070.00816.11
7.2.190.0110.00516.00
7.2.180.0020.01216.10
7.2.170.0050.00816.15
7.2.160.0030.01017.15
7.2.150.0040.01117.15
7.2.140.0040.00717.15
7.2.130.0060.00916.96
7.2.120.0050.00516.95
7.2.110.0050.01117.00
7.2.100.0030.01216.94
7.2.90.0090.00416.97
7.2.80.0050.00916.94
7.2.70.0100.00616.90
7.2.60.0060.00816.96
7.2.50.0110.00116.96
7.2.40.0040.01316.94
7.2.30.0020.01416.93
7.2.20.0060.00916.95
7.2.10.0080.00816.98
7.2.00.0010.01217.78
7.1.330.0020.01516.37
7.1.320.0090.00616.42
7.1.310.0110.00416.33
7.1.300.0030.00616.42
7.1.290.0020.01116.40
7.1.280.0030.01016.44
7.1.270.0030.00816.43
7.1.260.0050.00816.42
7.1.250.0040.01116.34
7.1.200.0000.01015.45
7.1.100.0030.00918.01
7.1.70.0060.00617.16
7.1.60.0040.01819.44
7.1.50.0070.01816.86
7.1.00.0030.07722.45
7.0.200.0050.00516.73
7.0.60.0130.06019.95
7.0.50.0170.06717.89
7.0.40.0170.07720.15
7.0.30.0200.07020.26
7.0.20.0300.05020.20
7.0.10.0070.06020.16
7.0.00.0070.06720.09
5.6.280.0000.07021.13
5.6.210.0200.05320.67
5.6.200.0170.08018.25
5.6.190.0130.08720.58
5.6.180.0230.07320.57
5.6.170.0270.07320.51
5.6.160.0130.08020.48
5.6.150.0030.04018.19
5.6.140.0130.03318.15
5.6.130.0100.07318.18
5.6.120.0070.06721.06
5.6.110.0070.05021.00
5.6.100.0130.06721.00
5.6.90.0100.07720.98
5.6.80.0000.08020.37
5.5.350.0230.06720.45
5.5.340.0030.04017.98
5.5.330.0030.05320.43
5.5.320.0430.03720.37
5.5.310.0230.04020.34
5.5.300.0000.09017.92
5.5.290.0100.03717.98
5.5.280.0070.04320.99
5.5.270.0000.04720.88
5.5.260.0130.04720.96
5.5.250.0200.07720.72
5.5.240.0230.06720.13

preferences:
50.68 ms | 401 KiB | 5 Q