3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function getterForInt():int { return 3; } } $foo = new Foo(); $int = $foo->getterForInt(); echo $int;

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.0150.00318.17
8.3.60.0100.01016.63
8.3.50.0130.00521.14
8.3.40.0080.00618.71
8.3.30.0070.00718.67
8.3.20.0080.00020.30
8.3.10.0080.00023.70
8.3.00.0070.00323.65
8.2.180.0110.01118.16
8.2.170.0100.01022.96
8.2.160.0070.00720.27
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00419.95
8.2.120.0040.00426.35
8.2.110.0050.00520.52
8.2.100.0070.00417.78
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0060.00617.63
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0040.00422.26
8.2.30.0040.00419.57
8.2.20.0000.00817.59
8.2.10.0040.00418.07
8.2.00.0050.00318.05
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0040.01428.09
8.1.240.0050.00523.77
8.1.230.0120.00020.97
8.1.220.0050.00317.75
8.1.210.0000.00818.77
8.1.200.0060.00317.00
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.52
8.1.160.0070.00020.68
8.1.150.0040.00418.87
8.1.140.0050.00319.51
8.1.130.0020.00517.64
8.1.120.0040.00417.41
8.1.110.0000.00817.42
8.1.100.0040.00417.30
8.1.90.0030.00317.46
8.1.80.0000.00817.38
8.1.70.0030.00317.45
8.1.60.0050.00317.60
8.1.50.0030.00617.50
8.1.40.0050.00317.41
8.1.30.0000.00917.62
8.1.20.0040.00417.64
8.1.10.0040.00417.48
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.32
8.0.270.0030.00317.17
8.0.260.0000.00717.26
8.0.250.0030.00316.98
8.0.240.0060.00016.84
8.0.230.0030.00316.93
8.0.220.0060.00216.73
8.0.210.0040.00416.89
8.0.200.0030.00316.93
8.0.190.0000.00716.92
8.0.180.0070.00316.69
8.0.170.0000.00816.82
8.0.160.0040.00416.90
8.0.150.0000.00716.78
8.0.140.0070.00016.74
8.0.130.0000.00513.25
8.0.120.0050.00316.79
8.0.110.0000.00716.75
8.0.100.0040.00416.77
8.0.90.0040.00416.77
8.0.80.0030.01316.78
8.0.70.0080.00016.84
8.0.60.0070.00016.89
8.0.50.0070.00016.70
8.0.30.0160.00317.10
8.0.20.0080.01017.40
8.0.10.0040.00417.02
8.0.00.0070.01216.91
7.4.330.0050.00016.84
7.4.320.0030.00316.54
7.4.300.0040.00416.48
7.4.290.0030.00316.51
7.4.280.0000.00816.51
7.4.270.0020.00516.50
7.4.260.0040.00416.58
7.4.250.0050.00316.48
7.4.240.0020.00516.56
7.4.230.0000.00716.50
7.4.220.0110.00716.61
7.4.210.0090.01216.68
7.4.200.0030.00316.34
7.4.160.0190.00016.52
7.4.150.0160.00317.40
7.4.140.0090.01017.86
7.4.130.0100.00716.44
7.4.120.0100.00716.66
7.4.110.0090.00816.61
7.4.100.0130.00416.52
7.4.90.0150.00416.48
7.4.80.0130.00319.39
7.4.70.0100.00716.28
7.4.60.0030.01316.48
7.4.50.0070.00516.29
7.4.40.0100.00616.63
7.4.30.0160.00716.28
7.4.00.0100.00314.99
7.3.330.0020.00213.20
7.3.320.0000.00613.22
7.3.310.0030.00316.27
7.3.300.0000.00716.23
7.3.290.0100.01016.25
7.3.280.0080.01016.18
7.3.270.0190.00017.40
7.3.260.0110.00516.17
7.3.250.0100.00916.28
7.3.240.0070.01316.28
7.3.230.0100.00716.39
7.3.210.0170.00016.20
7.3.200.0100.00719.39
7.3.190.0100.00716.25
7.3.180.0100.00616.46
7.3.170.0090.00816.27
7.3.160.0110.00616.55
7.2.330.0160.00716.38
7.2.320.0060.01616.62
7.2.310.0100.00716.41
7.2.300.0060.01316.41
7.2.290.0100.00716.54
7.2.60.0030.01316.84
7.2.00.0000.01319.48
7.1.200.0040.00415.75
7.1.100.0100.01018.07
7.1.70.0080.00017.05
7.1.60.0090.01519.30
7.1.50.0140.01016.90
7.1.00.0130.06722.40
7.0.200.0000.00916.20
7.0.60.0200.07721.73
7.0.50.0130.08017.90
7.0.40.0130.07720.21
7.0.30.0200.03720.20
7.0.20.0270.07720.33
7.0.10.0070.04020.16
7.0.00.0130.06320.20
5.6.280.0000.03321.11
5.6.210.0100.05720.71
5.6.200.0130.08018.18
5.6.190.0030.09020.61
5.6.180.0470.05020.64
5.6.170.0330.07320.56
5.6.160.0000.06320.46
5.6.150.0070.05018.12
5.6.140.0030.04318.17
5.6.130.0070.07718.23
5.6.120.0070.04721.02
5.6.110.0070.07720.98
5.6.100.0130.06721.11
5.6.90.0070.04021.16
5.6.80.0000.08320.38
5.5.350.0070.03720.44
5.5.340.0100.03017.93
5.5.330.0000.08320.56
5.5.320.0370.04720.29
5.5.310.0170.04020.35
5.5.300.0070.06718.03
5.5.290.0070.04717.96
5.5.280.0100.06720.95
5.5.270.0100.04720.89
5.5.260.0100.07020.98
5.5.250.0130.07320.46
5.5.240.0200.06020.27

preferences:
61.78 ms | 401 KiB | 5 Q