3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { static function __invokeStatic() { echo "Dear God, why would you do this\n"; } } function MyClass() { MyClass::__invokeStatic(); } MyClass();

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.0030.01018.27
8.3.50.0100.01221.98
8.3.40.0090.00618.39
8.3.30.0030.01019.14
8.3.20.0040.00420.34
8.3.10.0080.00020.36
8.3.00.0050.00319.13
8.2.180.0070.01416.63
8.2.170.0110.00422.96
8.2.160.0080.00820.39
8.2.150.0050.00224.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00422.24
8.2.110.0050.00521.18
8.2.100.0040.00817.78
8.2.90.0090.00017.90
8.2.80.0060.00317.97
8.2.70.0080.00017.49
8.2.60.0040.00417.80
8.2.50.0060.00618.07
8.2.40.0000.00818.16
8.2.30.0040.00417.98
8.2.20.0030.00617.61
8.2.10.0070.00017.95
8.2.00.0070.00017.42
8.1.280.0150.00625.92
8.1.270.0030.00623.82
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.26
8.1.230.0120.00020.91
8.1.220.0040.00417.74
8.1.210.0030.00718.77
8.1.200.0080.00017.10
8.1.190.0050.00317.22
8.1.180.0060.00318.10
8.1.170.0080.00018.45
8.1.160.0000.00721.96
8.1.150.0000.00718.76
8.1.140.0000.00717.32
8.1.130.0000.00717.75
8.1.120.0040.00317.33
8.1.110.0040.00417.20
8.1.100.0070.00017.30
8.1.90.0000.00817.26
8.1.80.0000.00717.23
8.1.70.0000.00717.26
8.1.60.0060.00317.52
8.1.50.0000.00817.45
8.1.40.0000.00717.43
8.1.30.0030.00517.37
8.1.20.0030.00717.44
8.1.10.0000.00717.43
8.1.00.0030.00617.43
8.0.300.0040.00419.98
8.0.290.0000.00816.88
8.0.280.0040.00418.36
8.0.270.0070.00017.17
8.0.260.0030.00317.16
8.0.250.0000.00716.95
8.0.240.0000.00616.88
8.0.230.0030.00316.86
8.0.220.0050.00316.75
8.0.210.0000.00716.69
8.0.200.0070.00016.89
8.0.190.0080.00016.80
8.0.180.0070.00016.84
8.0.170.0000.00816.88
8.0.160.0030.00316.89
8.0.150.0030.00316.66
8.0.140.0000.00716.70
8.0.130.0040.00413.25
8.0.120.0040.00416.70
8.0.110.0080.00016.76
8.0.100.0030.00516.71
8.0.90.0000.00816.63
8.0.80.0060.00916.72
8.0.70.0040.00416.78
8.0.60.0040.00416.54
8.0.50.0040.00416.78
8.0.30.0070.01116.91
8.0.20.0120.01017.40
8.0.10.0000.00716.75
8.0.00.0140.00916.49
7.4.330.0000.00615.00
7.4.320.0030.00316.35
7.4.300.0000.00616.44
7.4.290.0060.00016.54
7.4.280.0050.00316.44
7.4.270.0000.00716.44
7.4.260.0030.00316.31
7.4.250.0040.00416.39
7.4.240.0050.00216.53
7.4.230.0070.00016.34
7.4.220.0060.01316.49
7.4.210.0120.00316.46
7.4.200.0030.00316.55
7.4.160.0090.00616.31
7.4.150.0060.01317.40
7.4.140.0120.00517.86
7.4.130.0100.00716.40
7.4.120.0050.01116.37
7.4.110.0090.00916.41
7.4.100.0130.00316.52
7.4.90.0060.01216.39
7.4.80.0040.01219.39
7.4.70.0060.01116.32
7.4.60.0090.00616.30
7.4.50.0000.00816.29
7.4.40.0100.01016.63
7.4.30.0190.00316.41
7.4.00.0060.01014.99
7.3.330.0030.00213.29
7.3.320.0000.00613.37
7.3.310.0030.00316.24
7.3.300.0030.00316.20
7.3.290.0070.00716.25
7.3.280.0060.01016.28
7.3.270.0200.00317.40
7.3.260.0090.00916.59
7.3.250.0140.00316.40
7.3.240.0160.00616.49
7.3.230.0100.00716.47
7.3.210.0040.01316.36
7.3.200.0090.00919.39
7.3.190.0100.00616.19
7.3.180.0140.00816.38
7.3.170.0100.01316.41
7.3.160.0030.01616.57
7.3.120.0090.00814.98
7.3.110.0090.00914.82
7.3.100.0090.00614.65
7.3.90.0070.00414.82
7.3.80.0090.00414.87
7.3.70.0070.00714.69
7.3.60.0050.00714.83
7.3.50.0020.01114.70
7.3.40.0080.00914.63
7.3.30.0080.00714.79
7.3.20.0070.00716.30
7.3.10.0080.00516.49
7.3.00.0100.00316.48
7.2.330.0100.00716.39
7.2.320.0120.00316.24
7.2.310.0100.01116.49
7.2.300.0060.01316.30
7.2.290.0060.01016.49
7.2.250.0100.01015.15
7.2.240.0070.01315.12
7.2.230.0070.00814.97
7.2.220.0050.00614.83
7.2.210.0080.00415.01
7.2.200.0030.00614.80
7.2.190.0020.01014.98
7.2.180.0060.01014.95
7.2.170.0060.00814.98
7.2.60.0000.01016.67
7.2.00.0130.00319.34
7.1.330.0090.00415.64
7.1.320.0030.00715.72
7.1.310.0030.01215.65
7.1.300.0070.00815.53
7.1.290.0050.01115.61
7.1.280.0080.00815.55
7.1.270.0080.00815.62
7.1.260.0050.00615.71
7.1.200.0100.00315.68
7.1.100.0070.00317.82
7.1.70.0030.00517.02
7.1.60.0070.01719.32
7.1.50.0070.01316.82
7.1.00.0070.07322.54
7.0.200.0000.01016.75
7.0.140.0130.06322.05
7.0.60.0100.03719.82
7.0.50.0030.07717.73
7.0.40.0070.09320.13
7.0.30.0500.05020.09
7.0.20.0270.04320.34
7.0.10.0100.08720.35
7.0.00.0070.08320.10
5.6.280.0030.07320.82
5.6.210.0030.04020.45
5.6.200.0070.08718.25
5.6.190.0130.08020.41
5.6.180.0400.06720.61
5.6.170.0230.05020.40
5.6.160.0000.09320.46
5.6.150.0000.04718.19
5.6.140.0030.03718.15
5.6.130.0100.08018.18
5.6.120.0170.04720.96
5.6.110.0100.08020.95
5.6.100.0070.08720.98
5.6.90.0070.04721.14
5.6.80.0030.04020.41
5.6.70.3630.04020.38
5.5.350.0100.08020.38
5.5.340.0130.06717.96
5.5.330.0070.04320.47
5.5.320.0200.03320.31
5.5.310.0270.07720.19
5.5.300.0100.03717.95
5.5.290.0100.03717.98
5.5.280.0130.07020.67
5.5.270.0130.05020.77
5.5.260.0100.08020.76
5.5.250.0100.08320.77
5.5.240.0070.06720.35
5.4.450.0870.04019.39
5.4.440.1070.05019.58
5.4.430.0930.05719.59
5.4.420.0630.00019.68
5.4.410.0630.00019.42
5.4.400.0630.00019.33
5.4.390.0630.00019.03
5.4.380.0670.00018.98
5.4.370.0600.00019.13
5.4.360.0600.00019.21
5.4.350.0630.00019.02
5.4.340.0600.00019.15
5.4.320.0060.03512.51
5.4.310.0060.03912.50
5.4.300.0050.03812.50
5.4.290.0100.03512.50
5.4.280.0050.03712.40
5.4.270.0060.03712.40
5.4.260.0020.04112.40
5.4.250.0050.03812.40
5.4.240.0060.03812.39
5.4.230.0090.03512.39
5.4.220.0070.03512.39
5.4.210.0070.03512.39
5.4.200.0040.04012.39
5.4.190.0090.03212.39
5.4.180.0040.03812.39
5.4.170.0070.03612.39
5.4.160.0080.04212.39
5.4.150.0080.04212.39
5.4.140.0080.04312.07
5.4.130.0040.03812.06
5.4.120.0040.03612.02
5.4.110.0080.03812.01
5.4.100.0040.03812.01
5.4.90.0080.04212.01
5.4.80.0060.03812.01
5.4.70.0070.03412.01
5.4.60.0060.03512.00
5.4.50.0080.03312.01
5.4.40.0070.03412.00
5.4.30.0040.04312.00
5.4.20.0090.03512.00
5.4.10.0080.03412.00
5.4.00.0030.04011.48
5.3.290.0040.04412.80
5.3.280.0070.04212.71
5.3.270.0040.04312.72
5.3.260.0070.03812.72
5.3.250.0070.03812.72
5.3.240.0060.03712.72
5.3.230.0060.03712.71
5.3.220.0100.03212.68
5.3.210.0050.04012.68
5.3.200.0040.04012.68
5.3.190.0070.04412.68
5.3.180.0100.03212.68
5.3.170.0060.03712.67
5.3.160.0060.04012.67
5.3.150.0100.03812.67
5.3.140.0090.03612.66
5.3.130.0080.03712.65
5.3.120.0040.03912.66
5.3.110.0050.04112.66
5.3.100.0040.04012.12
5.3.90.0120.04112.10
5.3.80.0090.03312.10
5.3.70.0100.03912.09
5.3.60.0110.03112.08
5.3.50.0060.03512.03
5.3.40.0060.03712.02
5.3.30.0040.03711.98
5.3.20.0040.03811.76
5.3.10.0060.03511.73
5.3.00.0050.03711.72
5.2.170.0060.0289.22
5.2.160.0050.0289.22
5.2.150.0050.0409.22
5.2.140.0050.0309.21
5.2.130.0040.0309.18
5.2.120.0070.0339.18
5.2.110.0050.0309.18
5.2.100.0050.0289.18
5.2.90.0030.0339.18
5.2.80.0080.0279.17
5.2.70.0020.0329.17
5.2.60.0040.0339.13
5.2.50.0040.0309.10
5.2.40.0030.0319.07
5.2.30.0040.0319.04
5.2.20.0060.0289.04
5.2.10.0040.0298.95
5.2.00.0050.0298.80
5.1.60.0030.0268.09
5.1.50.0070.0228.08
5.1.40.0060.0228.07
5.1.30.0040.0258.41
5.1.20.0050.0268.44
5.1.10.0060.0258.16
5.1.00.0040.0268.16
5.0.50.0060.0236.64
5.0.40.0040.0196.50
5.0.30.0050.0356.32
5.0.20.0030.0206.28
5.0.10.0050.0196.25
5.0.00.0020.0326.25
4.4.90.0020.0164.78
4.4.80.0010.0174.75
4.4.70.0040.0144.75
4.4.60.0040.0204.75
4.4.50.0030.0214.77
4.4.40.0020.0264.71
4.4.30.0050.0184.75
4.4.20.0000.0194.84
4.4.10.0040.0154.85
4.4.00.0040.0244.76
4.3.110.0040.0144.66
4.3.100.0010.0164.66
4.3.90.0020.0154.63
4.3.80.0010.0264.59
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0010.0274.53
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0050.0163.23
4.3.00.0330.02016.50

preferences:
33.23 ms | 401 KiB | 5 Q