3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(int $arg) { return $arg; } } $foo = new Foo(); try { $foo->bar('10 foo'); } catch (Exception $e) { echo $e->getMessage(); }

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.0110.00416.75
8.3.50.0120.00618.30
8.3.40.0070.01418.84
8.3.30.0110.00418.76
8.3.20.0070.00020.30
8.3.10.0000.00721.65
8.3.00.0040.00419.19
8.2.180.0150.00018.66
8.2.170.0090.00922.96
8.2.160.0100.00719.32
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0060.00317.50
8.2.120.0000.00826.35
8.2.110.0040.00420.30
8.2.100.0070.00417.80
8.2.90.0060.00319.27
8.2.80.0000.00817.97
8.2.70.0030.00617.25
8.2.60.0100.00317.90
8.2.50.0000.00918.07
8.2.40.0040.00419.46
8.2.30.0050.00520.53
8.2.20.0000.00817.49
8.2.10.0040.00417.89
8.2.00.0040.00417.97
8.1.280.0070.01025.92
8.1.270.0100.00323.88
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.13
8.1.230.0070.00417.64
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00820.11
8.1.160.0040.00421.94
8.1.150.0080.00018.91
8.1.140.0030.00519.46
8.1.130.0080.00017.68
8.1.120.0070.00317.26
8.1.110.0050.00217.39
8.1.100.0040.00417.34
8.1.90.0000.00717.37
8.1.80.0040.00417.39
8.1.70.0000.00717.26
8.1.60.0060.00317.45
8.1.50.0040.00417.47
8.1.40.0030.00517.38
8.1.30.0090.00317.62
8.1.20.0040.00417.52
8.1.10.0040.00417.49
8.1.00.0000.00717.53
8.0.300.0060.00318.77
8.0.290.0030.00616.63
8.0.280.0030.00318.36
8.0.270.0000.00717.26
8.0.260.0030.00317.22
8.0.250.0070.00016.86
8.0.240.0030.00316.96
8.0.230.0050.00316.96
8.0.220.0060.00316.88
8.0.210.0000.00816.78
8.0.200.0070.00016.96
8.0.190.0040.00416.97
8.0.180.0000.00716.90
8.0.170.0040.00416.87
8.0.160.0050.00216.90
8.0.150.0080.00016.82
8.0.140.0040.00416.82
8.0.130.0060.00013.32
8.0.120.0030.00516.82
8.0.110.0000.00716.86
8.0.100.0000.00816.73
8.0.90.0070.00016.75
8.0.80.0090.01316.90
8.0.70.0030.00516.85
8.0.60.0070.00016.77
8.0.50.0030.00416.77
8.0.30.0110.00817.17
8.0.20.0140.00417.40
8.0.10.0040.00416.84
8.0.00.0080.00916.77
7.4.330.0020.00216.85
7.4.320.0070.00016.48
7.4.300.0000.00616.59
7.4.290.0000.00716.57
7.4.280.0080.00016.58
7.4.270.0000.00616.55
7.4.260.0000.00716.37
7.4.250.0000.00716.44
7.4.240.0020.00616.56
7.4.230.0080.00016.61
7.4.220.0090.00916.52
7.4.210.0130.00316.40
7.4.200.0000.00716.24
7.4.160.0030.01216.46
7.4.150.0080.00817.40
7.4.140.0100.00917.86
7.4.130.0060.01116.58
7.4.120.0070.01116.41
7.4.110.0130.00616.61
7.4.100.0060.01216.62
7.4.90.0130.01016.50
7.4.80.0100.00719.39
7.4.70.0070.01316.42
7.4.60.0120.00316.38
7.4.50.0040.01116.57
7.4.40.0090.01216.63
7.4.30.0080.00916.55
7.4.00.0070.00714.84
7.3.330.0000.00613.15
7.3.320.0000.00613.16
7.3.310.0030.00316.39
7.3.300.0030.00316.29
7.3.290.0100.00616.30
7.3.280.0070.00916.32
7.3.270.0070.01017.40
7.3.260.0070.01016.44
7.3.250.0160.00516.47
7.3.240.0130.00816.38
7.3.230.0110.00816.43
7.3.210.0140.00416.39
7.3.200.0040.01116.50
7.3.190.0140.00716.14
7.3.180.0160.00316.19
7.3.170.0060.01316.27
7.3.160.0140.00316.50
7.3.120.0120.00314.77
7.3.110.0080.00614.70
7.3.100.0070.00714.66
7.3.90.0040.01214.81
7.3.80.0060.00914.79
7.3.70.0070.00714.56
7.3.60.0080.00814.73
7.3.50.0060.00914.77
7.3.40.0100.00314.69
7.3.30.0110.00314.92
7.3.20.0030.00716.61
7.3.10.0040.00716.40
7.3.00.0080.00316.57
7.2.330.0070.01016.53
7.2.320.0000.01816.59
7.2.310.0030.01716.28
7.2.300.0110.01116.53
7.2.290.0100.00616.27
7.2.240.0070.01014.98
7.2.230.0030.01314.84
7.2.220.0100.00615.08
7.2.210.0040.01114.82
7.2.200.0030.00915.09
7.2.190.0030.01414.97
7.2.180.0030.01214.95
7.2.170.0110.00714.93
7.2.160.0130.00314.90
7.2.150.0100.00616.80
7.2.140.0100.00716.66
7.2.130.0000.01716.59
7.2.120.0060.00616.88
7.2.110.0030.01416.64
7.2.100.0030.01316.71
7.2.90.0030.01216.91
7.2.80.0030.00916.89
7.2.70.0000.01616.97
7.2.60.0130.00716.59
7.2.50.0000.01616.94
7.2.40.0030.01316.98
7.2.30.0090.00616.92
7.2.20.0130.00016.78
7.2.10.0110.00716.63
7.2.00.0020.01218.24
7.1.330.0060.01115.57
7.1.320.0070.00715.43
7.1.310.0060.00315.54
7.1.300.0040.00815.77
7.1.290.0000.01115.32
7.1.280.0100.00715.59
7.1.270.0030.01315.76
7.1.260.0090.00615.67
7.1.250.0100.00715.77
7.1.200.0080.00015.74
7.1.100.0030.01017.99
7.1.70.0090.00516.80
7.1.60.0150.00919.36
7.1.50.0050.00916.62
7.1.00.0070.07322.50
7.0.200.0000.01016.46
7.0.60.0130.07719.82
7.0.50.0030.04017.91
7.0.40.0100.05020.30
7.0.30.0170.04020.11
7.0.20.0330.06720.07
7.0.10.0070.09020.15
7.0.00.0070.07020.08
5.6.280.0000.07021.04
5.6.210.0070.07320.70
5.6.200.0070.07318.21
5.6.190.0070.04320.33
5.6.180.0330.04720.48
5.6.170.0170.07020.67
5.6.160.0030.04320.54
5.6.150.0170.06718.16
5.6.140.0100.05018.21
5.6.130.0000.08018.25
5.6.120.0070.05321.01
5.6.110.0130.05721.04
5.6.100.0130.07721.00
5.6.90.0070.07321.03
5.6.80.0070.08320.40
5.5.350.3100.03320.44
5.5.340.0000.06317.98
5.5.330.0100.04020.41
5.5.320.0030.08320.38
5.5.310.0330.03320.23
5.5.300.0070.07018.08
5.5.290.0030.08018.04
5.5.280.0170.07320.85
5.5.270.0100.08020.76
5.5.260.0100.08320.88
5.5.250.0130.06320.60
5.5.240.0230.07320.15

preferences:
52.55 ms | 400 KiB | 5 Q