3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static public function foo() { echo 42; } } $a = new A; $a->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.1.70.0040.00417.18
8.1.60.0040.00417.63
8.1.50.0030.00517.47
8.1.40.0030.00917.53
8.1.30.0080.00017.66
8.1.20.0000.00717.69
8.1.10.0000.00717.48
8.1.00.0080.00017.39
8.0.200.0030.00316.86
8.0.190.0040.00416.79
8.0.180.0040.00416.82
8.0.170.0040.00416.75
8.0.160.0000.00816.85
8.0.150.0090.00316.75
8.0.140.0030.00316.80
8.0.130.0040.00615.61
8.0.120.0000.00816.68
8.0.110.0040.00416.87
8.0.100.0000.00716.80
8.0.90.0030.00516.88
8.0.80.0100.01116.81
8.0.70.0040.00416.93
8.0.60.0000.00716.70
8.0.50.0050.00316.86
8.0.30.0070.00916.93
8.0.20.0150.00517.23
8.0.10.0030.01216.99
8.0.00.0100.00716.81
7.4.300.0000.00716.54
7.4.290.0080.00316.60
7.4.280.0050.00316.50
7.4.270.0060.00316.60
7.4.260.0070.00116.47
7.4.250.0040.00416.48
7.4.240.0020.00616.56
7.4.230.0000.00716.62
7.4.220.0130.01016.36
7.4.210.0090.00616.53
7.4.200.0030.00316.68
7.4.160.0100.00516.57
7.4.150.0090.00716.91
7.4.140.0100.00917.37
7.4.130.0050.01316.46
7.4.120.0100.00716.50
7.4.110.0020.01516.48
7.4.100.0100.01016.47
7.4.90.0090.00816.52
7.4.80.0080.01017.88
7.4.70.0100.00816.41
7.4.60.0080.00716.48
7.4.50.0060.00516.36
7.4.40.0080.00916.42
7.4.30.0060.01016.60
7.4.20.0090.00616.49
7.4.10.0070.00716.47
7.4.00.0050.00915.65
7.3.330.0000.00513.16
7.3.320.0000.00513.22
7.3.310.0030.00316.24
7.3.300.0050.00316.21
7.3.290.0070.00016.19
7.3.280.0070.00916.19
7.3.270.0170.00216.79
7.3.260.0080.00716.25
7.3.250.0100.00916.34
7.3.240.0100.00516.20
7.3.230.0110.00516.30
7.3.220.0130.00316.25
7.3.210.0090.00616.26
7.3.200.0080.00817.75
7.3.190.0100.00616.25
7.3.180.0100.00616.25
7.3.170.0070.00816.22
7.3.160.0100.01116.34
7.3.150.0100.00316.08
7.3.140.0070.00716.18
7.3.130.0070.00716.18
7.3.120.0080.00816.18
7.3.110.0070.00716.14
7.3.100.0000.01416.07
7.3.90.0080.00615.68
7.3.80.0020.01215.32
7.3.70.0050.00915.32
7.3.60.0070.01015.33
7.3.50.0080.00715.52
7.3.40.0120.00315.53
7.3.30.0100.00615.46
7.3.20.0060.01015.53
7.3.10.0080.00615.58
7.3.00.0250.01215.44
7.2.340.0110.00616.24
7.2.330.0160.00716.37
7.2.320.0130.00716.48
7.2.310.0130.00816.50
7.2.300.0120.01216.50
7.2.290.0170.00516.43
7.2.280.0190.01316.22
7.2.270.0220.01116.31
7.2.260.0190.01016.32
7.2.250.0170.00916.27
7.2.240.0170.00916.31
7.2.230.0100.01416.33
7.2.220.0180.00115.57
7.2.210.0100.01015.37
7.2.200.0250.00915.51
7.2.190.0170.00315.49
7.2.180.0130.00815.76
7.2.170.0140.01015.71
7.2.160.0160.00815.65
7.2.150.0150.00715.73
7.2.140.0120.01215.88
7.2.130.0130.01215.76
7.2.120.0230.00915.83
7.2.110.0160.01015.82
7.2.100.0140.01115.66
7.2.90.0120.01015.65
7.2.80.0810.00815.65
7.2.70.0170.00815.77
7.2.60.0110.01016.12
7.2.50.0110.01115.78
7.2.40.0160.00615.92
7.2.30.0140.00715.74
7.2.20.0150.00715.63
7.2.10.0180.00615.82
7.2.00.0120.01116.99
7.1.330.0120.01815.47
7.1.320.0130.00714.55
7.1.310.0140.00514.44
7.1.300.0140.00714.50
7.1.290.0210.01114.69
7.1.280.0140.00914.62
7.1.270.0180.00414.71
7.1.260.0180.00314.54
7.1.250.0280.01014.55
7.1.240.0180.00814.49
7.1.230.0170.00814.57
7.1.220.0130.01114.57
7.1.210.0130.01114.42
7.1.200.0190.00214.82
7.1.190.0220.00614.49
7.1.180.0160.00714.53
7.1.170.0140.00914.50
7.1.160.0140.00814.51
7.1.150.0140.00914.57
7.1.140.0130.01014.59
7.1.130.0140.01014.48
7.1.120.0280.00714.43
7.1.110.0160.00714.59
7.1.100.0110.01115.74
7.1.90.0150.01214.63
7.1.80.0170.01114.61
7.1.70.0130.01115.45
7.1.60.0160.00816.40
7.1.50.0110.01615.34
7.1.40.0240.00714.54
7.1.30.0210.00914.54
7.1.20.0340.01114.57
7.1.10.0210.00614.56
7.1.00.0110.03117.13
7.0.330.0190.00514.31
7.0.320.0200.00714.21
7.0.310.0120.01014.09
7.0.300.0110.01114.32
7.0.290.0180.00614.28
7.0.280.0210.00314.26
7.0.270.0220.01114.26
7.0.260.0150.01414.29
7.0.250.0110.01214.31
7.0.240.0210.00314.41
7.0.230.0220.00514.39
7.0.220.0160.01514.41
7.0.210.0320.00814.46
7.0.200.0140.00615.04
7.0.190.0160.01114.23
7.0.180.0270.00414.42
7.0.170.0180.01114.27
7.0.160.0150.01314.32
7.0.150.0140.01114.17
7.0.140.0190.00814.32
7.0.130.0260.00714.30
7.0.120.0180.01114.16
7.0.110.0200.00314.09
7.0.100.0140.01114.12
7.0.90.0170.00814.34
7.0.80.0210.00414.26
7.0.70.0200.00414.26
7.0.60.0150.02216.11
7.0.50.0140.03015.50
7.0.40.0130.02116.28
7.0.30.0180.02616.32
7.0.20.0460.01716.26
7.0.10.0350.02816.33
7.0.00.0120.03316.26
5.6.400.0140.01315.26
5.6.390.0100.01214.97
5.6.380.0170.00915.08
5.6.370.0140.00715.17
5.6.360.0150.00715.18
5.6.350.0160.00314.88
5.6.340.0140.01014.94
5.6.330.0190.00714.92
5.6.320.0150.00615.17
5.6.310.0170.00814.91
5.6.300.0180.00714.75
5.6.290.0240.00515.21
5.6.280.0110.01515.15
5.6.270.0150.00915.12
5.6.260.0200.00214.93
5.6.250.0170.00915.06
5.6.240.0110.01415.14
5.6.230.0190.00914.92
5.6.220.0170.00515.14
5.6.210.0150.03216.89
5.6.200.0180.02616.21
5.6.190.0100.03216.91
5.6.180.0230.02616.81
5.6.170.0180.02916.97
5.6.160.0090.03316.94
5.6.150.0160.02516.19
5.6.140.0160.03116.16
5.6.130.0160.02516.18
5.6.120.0130.03316.99
5.6.110.0140.02617.02
5.6.100.0170.03117.04
5.6.90.0130.03017.14
5.6.80.0160.02216.78
5.6.70.0120.01214.95
5.6.60.0090.01215.05
5.6.50.0130.01015.10
5.6.40.0190.00814.92
5.6.30.0160.00515.03
5.6.20.0150.00515.04
5.6.10.0130.00914.89
5.6.00.0160.00714.94
5.5.380.0180.00615.02
5.5.370.0170.01215.14
5.5.360.0150.00714.97
5.5.350.0100.02416.87
5.5.340.0100.02215.96
5.5.330.0100.02516.76
5.5.320.0070.02516.77
5.5.310.0190.02916.85
5.5.300.0130.02416.04
5.5.290.0150.01916.06
5.5.280.0130.02916.95
5.5.270.0140.03716.82
5.5.260.0140.03316.88
5.5.250.0130.02816.87
5.5.240.0150.02816.82
5.5.230.0150.00814.67
5.5.220.0100.01114.93
5.5.210.0140.01115.00
5.5.200.0100.01614.87
5.5.190.0100.01014.78
5.5.180.0150.00914.86
5.5.170.0130.00715.06
5.5.160.0120.01014.94
5.5.150.0170.00714.84
5.5.140.0120.00914.77
5.5.130.0100.01414.97
5.5.120.0210.00514.76
5.5.110.0150.00714.91
5.5.100.0180.00814.92
5.5.90.0180.00615.04
5.5.80.0150.01015.07
5.5.70.0160.00814.97
5.5.60.0270.01315.00
5.5.50.0210.01914.91
5.5.40.0270.00914.85
5.5.30.0190.01815.07
5.5.20.0150.00515.10
5.5.10.0200.01215.02
5.5.00.0240.01014.86
5.4.450.0190.02214.83
5.4.440.0140.01814.94
5.4.430.0140.01814.92
5.4.420.0130.01614.92
5.4.410.0180.01414.79
5.4.400.0090.02114.75
5.4.390.0130.01614.74
5.4.380.0160.02614.70
5.4.370.0110.01914.81
5.4.360.0090.02314.69
5.4.350.0150.02814.80
5.4.340.0190.02914.61
5.4.330.0130.00312.57
5.4.320.0130.02114.80
5.4.310.0170.02714.78
5.4.300.0200.02414.82
5.4.290.0120.03014.72
5.4.280.0130.02614.79
5.4.270.0160.01814.77
5.4.260.0230.02414.72
5.4.250.0180.02914.73
5.4.240.0130.02314.76
5.4.230.0230.02414.70
5.4.220.0250.02014.70
5.4.210.0270.02114.71
5.4.200.0170.02514.62
5.4.190.0150.02914.70
5.4.180.0190.01214.71
5.4.170.0180.02414.66
5.4.160.0200.02814.69
5.4.150.0180.02814.63
5.4.140.0160.02413.81
5.4.130.0130.02813.86
5.4.120.0150.02713.79
5.4.110.0170.01413.90
5.4.100.0180.01713.82
5.4.90.0160.01613.86
5.4.80.0210.02013.88
5.4.70.0160.01713.87
5.4.60.0160.01713.90
5.4.50.0180.01613.83
5.4.40.0230.01413.83
5.4.30.0200.02313.79
5.4.20.0110.02113.86
5.4.10.0170.02613.91
5.4.00.0130.02013.58

preferences:
40.2 ms | 408 KiB | 11 Q