3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo ($firstname) { if (!$firstname) { throw new \Exception('Division par zéro.'); } } foo();

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.0150.00016.50
8.3.50.0060.00816.36
8.3.40.0130.00618.79
8.3.30.0120.00618.57
8.3.20.0070.00020.04
8.3.10.0050.00321.57
8.3.00.0080.00419.53
8.2.180.0070.00718.56
8.2.170.0110.00322.96
8.2.160.0130.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.13
8.2.120.0040.00426.35
8.2.110.0060.00320.39
8.2.100.0100.00018.09
8.2.90.0050.00319.05
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0040.00418.04
8.2.50.0080.00018.10
8.2.40.0050.00320.51
8.2.30.0040.00421.00
8.2.20.0040.00417.86
8.2.10.0000.00717.97
8.2.00.0060.00318.04
8.1.280.0100.00625.92
8.1.270.0070.00023.96
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00023.86
8.1.230.0110.00019.15
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.52
8.1.160.0000.00718.79
8.1.150.0070.00020.55
8.1.140.0040.00419.35
8.1.130.0000.00718.79
8.1.120.0040.00417.34
8.1.110.0040.00417.34
8.1.100.0030.00517.21
8.1.90.0040.00417.35
8.1.80.0040.00417.34
8.1.70.0000.00717.35
8.1.60.0000.00817.39
8.1.50.0000.00817.47
8.1.40.0070.00017.47
8.1.30.0050.00317.47
8.1.20.0060.00317.55
8.1.10.0040.00417.49
8.1.00.0060.00317.48
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0070.00018.35
8.0.270.0070.00017.18
8.0.260.0030.00316.80
8.0.250.0070.00016.86
8.0.240.0000.00716.96
8.0.230.0030.00316.96
8.0.220.0040.00416.87
8.0.210.0040.00416.90
8.0.200.0000.00616.90
8.0.190.0000.01016.98
8.0.180.0040.00416.96
8.0.170.0000.00716.79
8.0.160.0080.00016.96
8.0.150.0070.00016.77
8.0.140.0080.00016.81
8.0.130.0000.00613.30
8.0.120.0070.00016.72
8.0.110.0000.00716.82
8.0.100.0070.00016.94
8.0.90.0040.00416.82
8.0.80.0090.00616.87
8.0.70.0050.00216.83
8.0.60.0040.00416.74
8.0.50.0000.00816.70
8.0.30.0080.01117.02
8.0.20.0070.01217.40
8.0.10.0000.00816.93
8.0.00.0110.00616.61
7.4.330.0050.00015.55
7.4.320.0030.00316.42
7.4.300.0000.00616.49
7.4.290.0000.00716.48
7.4.280.0080.00016.43
7.4.270.0030.00316.45
7.4.260.0030.00313.19
7.4.250.0040.00416.31
7.4.240.0030.00316.48
7.4.230.0030.00316.53
7.4.220.0070.01316.57
7.4.210.0100.00316.57
7.4.200.0030.00316.28
7.4.160.0090.00816.31
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0120.00616.44
7.4.120.0090.01016.45
7.4.110.0170.00316.36
7.4.100.0120.00916.46
7.4.90.0130.00416.32
7.4.80.0110.00619.39
7.4.70.0120.00916.57
7.4.60.0070.01116.45
7.4.50.0060.01016.21
7.4.40.0030.01316.42
7.4.30.0090.00916.28
7.4.00.0070.01014.80
7.3.330.0000.00513.10
7.3.320.0000.00613.36
7.3.310.0000.00716.29
7.3.300.0030.00316.33
7.3.290.0080.00816.29
7.3.280.0080.00916.27
7.3.270.0110.01217.40
7.3.260.0090.01016.24
7.3.250.0090.00716.46
7.3.240.0080.01216.23
7.3.230.0140.00316.62
7.3.210.0070.01016.45
7.3.200.0070.01116.35
7.3.190.0140.00316.42
7.3.180.0160.00616.34
7.3.170.0000.01616.43
7.3.160.0080.00816.30
7.3.120.0090.00914.62
7.3.110.0060.01314.95
7.3.100.0060.00614.95
7.3.90.0070.00714.46
7.3.80.0030.01014.68
7.3.70.0060.00914.47
7.3.60.0040.01114.71
7.3.50.0030.01214.85
7.3.40.0030.01014.83
7.3.30.0000.01714.67
7.3.20.0090.00616.70
7.3.10.0070.00616.72
7.3.00.0070.00816.59
7.2.330.0060.01116.63
7.2.320.0100.01016.61
7.2.310.0060.01016.27
7.2.300.0090.01016.33
7.2.290.0080.00816.29
7.2.250.0040.00814.83
7.2.240.0100.00715.11
7.2.230.0040.01114.67
7.2.220.0120.00615.14
7.2.210.0070.00714.79
7.2.200.0030.01315.02
7.2.190.0070.00714.66
7.2.180.0040.01514.96
7.2.170.0060.00914.87
7.2.130.0090.00616.82
7.2.120.0060.00616.81
7.2.110.0090.00616.45
7.2.100.0130.00016.80
7.2.90.0060.01216.55
7.2.80.0040.00816.46
7.2.70.0060.01216.87
7.2.60.0130.00416.70
7.2.50.0070.00716.72
7.2.40.0030.01016.75
7.2.30.0060.01016.58
7.2.20.0000.01116.85
7.2.10.0060.00916.86
7.2.00.0110.00617.87
7.1.330.0070.00715.64
7.1.320.0030.00915.64
7.1.310.0000.01115.55
7.1.300.0040.01215.48
7.1.290.0030.00615.59
7.1.280.0110.00415.64
7.1.270.0030.01315.65
7.1.260.0040.00715.70
7.1.250.0040.00815.75
7.1.200.0090.00315.76
7.1.100.0040.00817.67
7.1.70.0070.00716.98
7.1.60.0180.01234.99
7.1.50.0230.00634.70
7.1.40.0190.01234.18
7.1.30.0180.01234.35
7.1.20.0100.02334.64
7.1.10.0100.00316.28
7.1.00.0030.01016.52
7.0.200.0090.00616.89
7.0.190.0040.01116.76
7.0.180.0080.00816.24
7.0.170.0090.00916.30
7.0.160.0030.01016.28
7.0.150.0070.00716.17
7.0.140.0060.01116.14
7.0.130.0030.01316.60
7.0.120.0070.00716.51
7.0.110.0030.01116.04
7.0.100.0060.00916.34
7.0.90.0060.00916.48
7.0.80.0060.00916.49
7.0.70.0060.00916.31
7.0.60.0070.00716.14
7.0.50.0030.01216.32
7.0.40.0040.01116.34
7.0.30.0090.00616.34
7.0.20.0120.00316.25
7.0.10.0100.00316.40
7.0.00.0030.01016.38

preferences:
36.37 ms | 401 KiB | 5 Q