3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A\B\C; class Exception extends \Exception {} $a = new Exception('hi'); // $a is an object of class A\B\C\Exception $b = new \Exception('hi'); // $b is an object of class Exception $c = new ArrayObject; // fatal error, class A\B\C\ArrayObject not found

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.0140.00316.25
8.3.50.0120.00616.59
8.3.40.0120.00318.70
8.3.30.0070.00718.67
8.3.20.0000.00720.35
8.3.10.0050.00523.53
8.3.00.0030.00619.59
8.2.180.0070.01118.41
8.2.170.0070.00722.96
8.2.160.0110.00319.04
8.2.150.0040.00424.18
8.2.140.0020.00524.66
8.2.130.0000.00821.12
8.2.120.0000.00826.35
8.2.110.0040.00420.54
8.2.100.0050.00517.84
8.2.90.0080.00019.00
8.2.80.0040.00418.04
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00918.10
8.2.40.0050.00320.42
8.2.30.0000.00718.98
8.2.20.0000.00718.00
8.2.10.0040.00417.91
8.2.00.0050.00218.04
8.1.280.0030.01425.92
8.1.270.0070.00022.19
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.75
8.1.230.0000.01119.20
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.01117.23
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00618.45
8.1.160.0040.00419.05
8.1.150.0060.00320.55
8.1.140.0070.00019.41
8.1.130.0030.00318.77
8.1.120.0040.00417.28
8.1.110.0000.00717.37
8.1.100.0040.00417.31
8.1.90.0000.00717.29
8.1.80.0040.00417.39
8.1.70.0030.00317.39
8.1.60.0040.00417.54
8.1.50.0070.00017.52
8.1.40.0030.00617.38
8.1.30.0000.00717.47
8.1.20.0060.00317.63
8.1.10.0040.00417.43
8.1.00.0070.00017.51
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.29
8.0.270.0070.00017.18
8.0.260.0030.00316.89
8.0.250.0030.00316.82
8.0.240.0000.00716.84
8.0.230.0000.00716.91
8.0.220.0000.00716.77
8.0.210.0070.00016.79
8.0.200.0030.00316.93
8.0.190.0030.00516.95
8.0.180.0000.00716.88
8.0.170.0040.00416.86
8.0.160.0030.00316.82
8.0.150.0000.00716.79
8.0.140.0030.00516.82
8.0.130.0060.00013.27
8.0.120.0000.00716.82
8.0.110.0080.00016.74
8.0.100.0040.00416.93
8.0.90.0040.00416.95
8.0.80.0060.01316.87
8.0.70.0040.00416.85
8.0.60.0000.00816.75
8.0.50.0070.00016.71
8.0.30.0160.00517.02
8.0.20.0110.00817.40
8.0.10.0030.00716.82
8.0.00.0170.01016.59
7.4.330.0060.00015.55
7.4.320.0060.00016.47
7.4.300.0060.00016.48
7.4.290.0070.00016.44
7.4.280.0000.00816.47
7.4.270.0000.00816.48
7.4.260.0000.00816.48
7.4.250.0070.00016.48
7.4.240.0000.00716.60
7.4.230.0030.00316.34
7.4.220.0090.00916.51
7.4.210.0130.00716.54
7.4.200.0070.00016.67
7.4.160.0080.00916.60
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0200.00316.56
7.4.120.0120.00816.63
7.4.110.0030.01316.56
7.4.100.0170.00716.53
7.4.90.0130.00316.39
7.4.80.0090.00819.39
7.4.70.0080.00816.42
7.4.60.0100.00616.41
7.4.50.0030.01516.36
7.4.40.0000.01816.63
7.4.30.0100.00816.34
7.4.00.0100.00715.03
7.3.330.0000.00613.04
7.3.320.0050.00013.37
7.3.310.0050.00216.19
7.3.300.0030.00316.34
7.3.290.0060.00916.27
7.3.280.0070.00916.27
7.3.270.0090.00917.40
7.3.260.0150.00516.54
7.3.250.0130.00616.32
7.3.240.0070.01016.47
7.3.230.0150.00616.20
7.3.210.0130.00316.52
7.3.200.0060.00916.61
7.3.190.0070.01116.37
7.3.180.0100.00616.27
7.3.170.0090.00616.36
7.3.160.0120.00416.34
7.2.330.0100.00716.72
7.2.320.0060.01216.61
7.2.310.0130.00316.79
7.2.300.0030.01516.47
7.2.290.0130.00416.66
7.2.60.0030.01016.79
7.2.00.0000.01219.27
7.1.200.0360.00315.70
7.1.100.0040.00717.77
7.1.70.0050.00717.08
7.1.60.0130.01335.18
7.1.50.0110.01534.63
7.1.40.0160.01234.41
7.1.30.0120.01634.25
7.1.20.0180.00934.48
7.1.10.0030.01016.43
7.1.00.0080.00416.60
7.0.200.0060.00616.67
7.0.190.0040.00816.55
7.0.180.0030.01016.08
7.0.170.0000.01316.21
7.0.160.0030.00916.34
7.0.150.0030.01016.08
7.0.140.0040.00816.15
7.0.130.0100.00316.44
7.0.120.0100.00316.38
7.0.110.0060.00616.18
7.0.100.0100.00316.14
7.0.90.0080.00516.18
7.0.80.0000.01416.33
7.0.70.0030.01016.13
7.0.60.0070.00715.80
7.0.50.0030.01016.04
7.0.40.0100.00316.26
7.0.30.0090.00416.31
7.0.20.0040.00916.25
7.0.10.0030.01016.19
7.0.00.0000.01316.20

preferences:
37.59 ms | 401 KiB | 5 Q