3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testClass { function hello() { $a = 1; $b = 2; $c = $a + $b; echo $c; } } $t = new testClass(); $t.hello();

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.0160.00616.88
8.3.60.0160.00618.56
8.3.50.0110.00617.36
8.3.40.0110.00418.97
8.3.30.0110.00418.82
8.3.20.0080.00019.11
8.3.10.0070.00021.95
8.3.00.0000.00819.59
8.2.180.0140.00316.75
8.2.170.0070.00722.96
8.2.160.0130.00320.57
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0080.00420.35
8.2.120.0080.00026.35
8.2.110.0160.00020.35
8.2.100.0060.00617.75
8.2.90.0030.00619.22
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0040.00421.98
8.2.30.0000.00820.98
8.2.20.0070.00017.91
8.2.10.0000.00717.90
8.2.00.0040.00417.85
8.1.280.0150.00025.92
8.1.270.0030.00522.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00921.91
8.1.230.0040.00820.87
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.25
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0030.00518.53
8.1.160.0000.00818.93
8.1.150.0000.00718.79
8.1.140.0000.00719.39
8.1.130.0000.00718.85
8.1.120.0000.00717.47
8.1.110.0040.00417.40
8.1.100.0040.00417.38
8.1.90.0030.00517.38
8.1.80.0000.00717.41
8.1.70.0040.00417.39
8.1.60.0030.00617.53
8.1.50.0040.00417.44
8.1.40.0030.00917.54
8.1.30.0040.00417.72
8.1.20.0000.00717.66
8.1.10.0090.00017.61
8.1.00.0030.00617.49
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.45
8.0.270.0000.00717.20
8.0.260.0030.00616.66
8.0.250.0000.00716.91
8.0.240.0040.00416.88
8.0.230.0050.00216.85
8.0.220.0000.00716.91
8.0.210.0040.00416.95
8.0.200.0100.00017.01
8.0.190.0070.00016.95
8.0.180.0000.00716.80
8.0.170.0000.00716.75
8.0.160.0040.00416.98
8.0.150.0040.00416.80
8.0.140.0000.00816.82
8.0.130.0040.00313.33
8.0.120.0050.00316.88
8.0.110.0040.00316.76
8.0.100.0070.00016.72
8.0.90.0040.00416.95
8.0.80.0040.01216.92
8.0.70.0080.00016.92
8.0.60.0050.00216.79
8.0.50.0000.00716.87
8.0.30.0080.01317.15
8.0.20.0080.01117.40
8.0.10.0040.00417.05
8.0.00.0070.01016.54
7.4.330.0050.00015.55
7.4.320.0000.00716.34
7.4.300.0000.00616.61
7.4.290.0000.00716.64
7.4.280.0030.00616.64
7.4.270.0000.00816.40
7.4.260.0040.00416.48
7.4.250.0040.00416.57
7.4.240.0030.00316.66
7.4.230.0000.00716.70
7.4.220.0100.00716.63
7.4.210.0040.01116.62
7.4.200.0070.00016.62
7.4.160.0080.00716.47
7.4.150.0060.01617.40
7.4.140.0170.00317.86
7.4.130.0180.00616.58
7.4.120.0110.00816.51
7.4.110.0130.00516.43
7.4.100.0090.01216.61
7.4.90.0060.01216.47
7.4.80.0030.01319.39
7.4.70.0150.00316.40
7.4.60.0030.01316.39
7.4.50.0070.01016.61
7.4.40.0120.00616.51
7.4.30.0090.00816.52
7.4.00.0060.01215.10
7.3.330.0050.00013.33
7.3.320.0020.00213.27
7.3.310.0040.00416.28
7.3.300.0030.00316.26
7.3.290.0060.00916.28
7.3.280.0090.00716.30
7.3.270.0070.01017.40
7.3.260.0120.00416.37
7.3.250.0090.00916.35
7.3.240.0130.00516.23
7.3.230.0090.00916.59
7.3.210.0100.00716.51
7.3.200.0070.01016.51
7.3.190.0070.01416.21
7.3.180.0090.00616.48
7.3.170.0070.01016.61
7.3.160.0140.00716.53
7.3.00.0090.00616.64
7.2.330.0100.00716.61
7.2.320.0080.00816.40
7.2.310.0140.00716.63
7.2.300.0030.01316.50
7.2.290.0140.00716.52
7.2.130.0070.00417.02
7.2.120.0030.00716.79
7.2.110.0030.01016.57
7.2.100.0090.00616.90
7.2.90.0090.00316.88
7.2.80.0030.00616.89
7.2.70.0040.00816.61
7.2.60.0060.00716.76
7.2.50.0060.00616.78
7.2.40.0040.00716.88
7.2.30.0070.00716.91
7.2.20.0040.00716.82
7.2.10.0030.00916.75
7.2.00.0070.00818.20
7.1.250.0030.00615.68
7.1.240.0040.01115.53
7.1.230.0000.01415.43
7.1.220.0030.01015.42
7.1.210.0000.01415.77
7.1.200.0060.00715.68
7.1.190.0040.00715.57
7.1.180.0070.00715.34
7.1.170.0030.00615.57
7.1.160.0040.00415.41
7.1.150.0090.00315.48
7.1.140.0030.00715.29
7.1.130.0000.01015.55
7.1.120.0060.00615.79
7.1.110.0090.00315.48
7.1.100.0030.01116.77
7.1.90.0070.00315.44
7.1.80.0000.00815.63
7.1.70.0070.01016.13
7.1.60.0900.01224.39
7.1.50.1040.00824.08
7.1.40.1050.01024.09
7.1.30.1480.01024.24
7.1.20.0970.01523.99
7.1.10.0730.01014.96
7.1.00.0930.00515.12
7.0.330.0000.01415.16
7.0.320.0040.00415.18
7.0.310.0060.00614.82
7.0.300.0000.01115.25
7.0.290.0060.00315.24
7.0.280.0070.00315.08
7.0.270.0040.00715.16
7.0.260.0000.01415.21
7.0.250.0070.00315.13
7.0.240.0030.00915.33
7.0.230.0060.00615.21
7.0.220.0100.00315.20
7.0.210.0060.00615.14
7.0.200.1020.01115.05
7.0.190.1080.00814.90
7.0.180.1050.00714.80
7.0.170.1320.01214.69
7.0.160.1040.00714.75
7.0.150.0770.00814.76
7.0.140.0980.00714.81
7.0.130.0670.01014.98
7.0.120.0720.01015.06
7.0.110.0700.01514.68
7.0.100.0680.01514.81
7.0.90.0740.01014.67
7.0.80.0750.01114.73
7.0.70.0750.01214.73
7.0.60.0430.01314.61
7.0.50.0300.01314.93
7.0.40.0700.01413.99
7.0.30.0040.01213.85
7.0.20.0050.00813.84
7.0.10.1070.01513.81
7.0.00.0030.01013.93
5.6.380.0040.00714.27

preferences:
56.33 ms | 401 KiB | 5 Q