3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() : int { return '1'; } } print (new Foo)->bar();

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.0090.00916.88
8.3.50.0110.00717.93
8.3.40.0100.00618.71
8.3.30.0070.00718.54
8.3.20.0040.00419.11
8.3.10.0040.00421.77
8.3.00.0050.00319.59
8.2.180.0090.00618.07
8.2.170.0100.00718.96
8.2.160.0100.00322.96
8.2.150.0000.00925.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.03
8.2.110.0070.00321.00
8.2.100.0090.00317.84
8.2.90.0040.00419.07
8.2.80.0050.00317.97
8.2.70.0000.00917.50
8.2.60.0120.00017.80
8.2.50.0000.00818.10
8.2.40.0040.00422.34
8.2.30.0040.00420.90
8.2.20.0050.00317.86
8.2.10.0000.00717.84
8.2.00.0040.00417.59
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0080.00823.92
8.1.230.0000.01022.82
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0090.00017.10
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0060.00618.30
8.1.160.0040.00422.00
8.1.150.0030.00320.87
8.1.140.0050.00219.32
8.1.130.0050.00217.37
8.1.120.0000.00817.37
8.1.110.0040.00417.37
8.1.100.0080.00017.21
8.1.90.0000.00717.20
8.1.80.0040.00417.38
8.1.70.0030.00317.32
8.1.60.0050.00317.46
8.1.50.0070.00017.50
8.1.40.0040.00417.48
8.1.30.0030.00617.44
8.1.20.0020.00517.64
8.1.10.0000.00717.40
8.1.00.0040.00417.52
8.0.300.0000.00818.77
8.0.290.0030.00616.88
8.0.280.0030.00318.36
8.0.270.0050.00316.76
8.0.260.0030.00316.75
8.0.250.0030.00316.95
8.0.240.0030.00316.96
8.0.230.0030.00316.98
8.0.220.0000.00616.81
8.0.210.0070.00016.72
8.0.200.0030.00517.00
8.0.190.0030.00616.92
8.0.180.0030.00316.93
8.0.170.0000.00816.88
8.0.160.0000.00716.88
8.0.150.0070.00016.71
8.0.140.0040.00416.88
8.0.130.0030.00313.24
8.0.120.0000.00716.78
8.0.110.0030.00516.66
8.0.100.0000.00716.71
8.0.90.0040.00416.91
8.0.80.0060.00916.92
8.0.70.0000.00816.80
8.0.60.0040.00416.75
8.0.50.0080.00016.82
8.0.30.0060.01216.91
8.0.20.0110.00917.40
8.0.10.0030.00316.88
8.0.00.0090.01216.82
7.4.330.0060.00015.55
7.4.320.0000.00616.38
7.4.300.0000.00616.52
7.4.290.0000.00816.38
7.4.280.0050.00316.52
7.4.270.0030.00316.42
7.4.260.0030.00316.41
7.4.250.0070.00016.50
7.4.240.0030.00316.32
7.4.230.0000.00716.59
7.4.220.0090.00916.55
7.4.210.0020.01416.53
7.4.200.0000.00716.27
7.4.160.0060.01116.30
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0120.00716.39
7.4.120.0100.00916.42
7.4.110.0070.01016.61
7.4.100.0060.01516.26
7.4.90.0130.01316.66
7.4.80.0100.00719.39
7.4.70.0070.01116.56
7.4.60.0070.00916.32
7.4.50.0000.01616.24
7.4.40.0140.00316.39
7.4.30.0100.01016.36
7.4.00.0180.00015.07
7.3.330.0050.00013.13
7.3.320.0000.00513.17
7.3.310.0050.00216.11
7.3.300.0070.00016.14
7.3.290.0030.00316.19
7.3.280.0080.00916.21
7.3.270.0130.00417.40
7.3.260.0060.01316.27
7.3.250.0090.00916.34
7.3.240.0110.00816.43
7.3.230.0120.00816.47
7.3.210.0090.00616.41
7.3.200.0060.01616.25
7.3.190.0170.00016.20
7.3.180.0030.01316.25
7.3.170.0090.00616.17
7.3.160.0030.01716.42
7.2.330.0140.00316.48
7.2.320.0090.00916.29
7.2.310.0120.00916.70
7.2.300.0060.01516.26
7.2.290.0000.01616.70
7.2.80.0000.01216.50
7.2.60.0030.01216.78
7.1.200.0000.01315.69
7.1.70.0000.00717.09
7.1.60.0050.00917.19
7.1.50.0030.01216.87
7.1.00.1900.06020.76
7.0.200.0540.00714.30
7.0.140.0700.06020.27
7.0.130.1030.06320.34
7.0.120.0730.05320.36
7.0.110.0630.06020.32
7.0.100.0630.06320.16
7.0.90.1200.08020.25
7.0.80.0830.05720.25
7.0.70.0730.04720.27
7.0.60.0770.04720.25
7.0.50.0530.06020.19
7.0.40.0800.04720.39
7.0.30.0700.05320.25
7.0.20.0630.06020.20
7.0.10.0730.05320.16
7.0.00.0700.07320.18
5.6.290.0230.06020.89
5.6.280.0100.07720.79
5.6.270.0170.05321.11
5.6.260.0200.04721.04
5.6.250.0230.07021.07
5.6.240.0200.07721.07
5.6.230.0030.06321.11
5.6.220.0100.06020.96
5.6.210.0170.06321.09
5.6.200.0100.05720.86
5.6.190.0100.06021.00
5.6.180.0170.05721.06
5.6.170.0100.06020.92
5.6.160.0100.06020.74
5.6.150.0170.05720.90
5.6.140.0170.05320.98
5.6.130.0130.05321.08
5.6.120.0100.06020.87
5.6.110.0200.05320.86
5.6.100.0130.05320.81
5.6.90.0100.05321.05
5.6.80.0130.07320.12
5.6.70.0100.08020.46
5.6.60.0270.06720.23
5.6.50.0300.06720.44
5.6.40.0230.05320.42
5.6.30.0330.06720.40
5.6.20.0230.06720.14
5.6.10.0100.07320.41
5.6.00.0130.05720.45

preferences:
59.42 ms | 400 KiB | 5 Q