3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public static function default() { echo 'ok'; } } x::default();

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.4.20.0100.01017.80
8.4.10.0040.00817.77
8.3.150.0040.00417.37
8.3.140.0140.00018.65
8.3.130.0110.01118.62
8.3.120.0030.00618.93
8.3.110.0100.00020.94
8.3.100.0040.00424.06
8.3.90.0090.00926.77
8.3.80.0050.00518.31
8.3.70.0110.00416.38
8.3.60.0150.00618.18
8.3.50.0090.01122.06
8.3.40.0110.00718.59
8.3.30.0110.00318.42
8.3.20.0140.00021.86
8.3.10.0060.00319.99
8.3.00.0040.00419.79
8.2.260.0030.00616.30
8.2.250.0040.00418.52
8.2.240.0040.00417.00
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0030.00616.50
8.2.190.0140.00318.12
8.2.180.0090.00918.27
8.2.170.0110.00422.96
8.2.160.0070.00720.37
8.2.150.0090.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00719.64
8.2.120.0000.00826.35
8.2.110.0030.00619.30
8.2.100.0050.00517.66
8.2.90.0080.00018.93
8.2.80.0080.00017.97
8.2.70.0080.00017.49
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0080.00020.42
8.2.30.0040.00419.08
8.2.20.0000.00817.95
8.2.10.0040.00417.91
8.2.00.0040.00417.42
8.1.310.0090.00916.60
8.1.300.0110.00417.57
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0000.00721.86
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.80
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0030.00518.54
8.1.160.0030.00518.62
8.1.150.0000.00721.91
8.1.140.0040.00419.43
8.1.130.0030.00318.98
8.1.120.0030.00617.38
8.1.110.0060.00317.19
8.1.100.0040.00417.34
8.1.90.0040.00417.36
8.1.80.0000.00717.28
8.1.70.0000.00717.32
8.1.60.0040.00417.57
8.1.50.0060.00317.43
8.1.40.0030.00617.33
8.1.30.0050.00317.63
8.1.20.0040.00417.56
8.1.10.0000.00717.37
8.1.00.0030.00517.48
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0070.00018.36
8.0.270.0000.00717.21
8.0.260.0070.00017.14
8.0.250.0030.00316.88
8.0.240.0070.00316.85
8.0.230.0070.00016.78
8.0.220.0040.00416.82
8.0.210.0030.00316.78
8.0.200.0030.00316.84
8.0.190.0130.00016.82
8.0.180.0030.00316.83
8.0.170.0040.00416.84
8.0.160.0000.00716.87
8.0.150.0090.00016.70
8.0.140.0040.00416.78
8.0.130.0030.00513.22
8.0.120.0040.00416.73
8.0.110.0040.00416.59
8.0.100.0070.00016.82
8.0.90.0030.00516.79
8.0.80.0040.01116.65
8.0.70.0000.00716.70
8.0.60.0040.00416.63
8.0.50.0070.00016.75
8.0.30.0070.01017.00
8.0.20.0090.00917.40
8.0.10.0070.00016.77
8.0.00.0060.01216.86
7.4.330.0000.00715.55
7.4.320.0030.00316.32
7.4.300.0000.00616.50
7.4.290.0030.00316.44
7.4.280.0070.00016.43
7.4.270.0030.00416.48
7.4.260.0030.00316.52
7.4.250.0030.00316.39
7.4.240.0040.00416.50
7.4.230.0070.00016.28
7.4.220.0110.01516.59
7.4.210.0090.00516.41
7.4.200.0070.00016.60
7.4.160.0040.01516.40
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0100.00816.40
7.4.120.0100.00916.51
7.4.110.0160.00016.51
7.4.100.0090.00916.29
7.4.90.0130.00316.51
7.4.80.0060.01019.39
7.4.70.0130.00316.47
7.4.60.0120.00316.50
7.4.50.0030.01316.22
7.4.40.0100.01016.34
7.4.30.0030.01516.58
7.4.10.0040.01114.66
7.4.00.0070.01214.94
7.3.330.0050.00313.15
7.3.320.0030.00313.09
7.3.310.0040.00416.22
7.3.300.0030.00316.18
7.3.290.0030.00316.10
7.3.280.0080.01016.23
7.3.270.0030.01517.40
7.3.260.0040.01416.50
7.3.250.0080.01016.29
7.3.240.0100.01016.23
7.3.230.0130.00516.29
7.3.210.0130.00316.18
7.3.200.0160.00016.24
7.3.190.0120.00616.52
7.3.180.0070.00716.54
7.3.170.0060.00916.29
7.3.160.0120.00316.44
7.3.130.0040.01214.96
7.3.120.0110.00714.92
7.3.110.0070.00714.71
7.3.100.0040.00814.62
7.3.90.0000.01314.99
7.3.80.0070.00714.91
7.3.70.0060.00614.52
7.3.60.0120.00314.73
7.3.50.0060.00614.53
7.3.40.0070.00414.64
7.3.30.0040.00414.51
7.3.20.0090.00616.67
7.3.10.0060.00716.66
7.3.00.0060.00916.31
7.2.330.0140.00416.58
7.2.320.0100.00916.56
7.2.310.0120.00616.38
7.2.300.0140.00316.66
7.2.290.0100.01016.36
7.2.260.0130.00315.07
7.2.250.0170.00314.79
7.2.240.0080.00614.80
7.2.230.0000.01314.92
7.2.220.0030.01315.04
7.2.210.0000.01314.94
7.2.200.0080.00414.90
7.2.190.0080.00615.04
7.2.180.0090.00014.83
7.2.170.0030.00814.97
7.2.160.0030.00914.87
7.2.150.0100.00716.72
7.2.140.0000.01216.65
7.2.130.0060.00816.74
7.2.120.0030.01116.66
7.2.110.0050.00816.60
7.2.100.0040.00916.80
7.2.90.0040.01016.79
7.2.80.0080.00716.87
7.2.70.0080.00416.61
7.2.60.0070.00516.80
7.2.50.0060.00816.68
7.2.40.0070.00816.88
7.2.30.0040.01016.79
7.2.20.0070.00716.64
7.2.10.0000.01316.76
7.2.00.0040.01216.80
7.1.330.0000.01215.39
7.1.320.0110.00415.89
7.1.310.0070.00715.54
7.1.300.0070.00715.85
7.1.290.0110.00015.55
7.1.280.0030.00915.73
7.1.270.0000.01215.60
7.1.260.0090.00315.64
7.1.250.0070.00415.56
7.1.240.0050.00615.39
7.1.230.0030.01115.63
7.1.220.0070.00615.55
7.1.210.0090.00415.60
7.1.200.0050.00615.73
7.1.190.0100.00315.76
7.1.180.0030.00615.52
7.1.170.0050.00615.63
7.1.160.0100.00215.69
7.1.150.0040.00915.60
7.1.140.0030.00615.68
7.1.130.0080.00515.56
7.1.120.0050.00915.53
7.1.110.0030.00815.49
7.1.100.0050.00715.75
7.1.90.0110.00315.60
7.1.80.0020.01115.45
7.1.70.0090.00816.17
7.1.60.0060.00716.16
7.1.50.0130.00822.06
7.1.40.0030.01015.57
7.1.30.0060.00415.63
7.1.20.0050.00915.54
7.1.10.0180.03518.88
7.1.00.0180.02517.30
7.0.330.0050.01015.30
7.0.320.0110.00215.27
7.0.310.0050.00715.17
7.0.300.0070.00415.09
7.0.290.0040.00815.32
7.0.280.0040.00615.26
7.0.270.0080.00615.27
7.0.260.0030.01115.31
7.0.250.0030.00815.18
7.0.240.0040.01115.20
7.0.230.0000.01215.24
7.0.220.0040.01115.11
7.0.210.0080.00315.41
7.0.200.0040.00815.75
7.0.190.0040.00715.26
7.0.180.0060.00715.19
7.0.170.0020.01015.37
7.0.160.0030.00815.19
7.0.150.0100.01917.44
7.0.140.0080.02317.56
7.0.130.0200.02416.88
7.0.120.0070.02417.45
7.0.110.0070.02617.45
7.0.100.0090.02116.79
7.0.90.0170.02316.96
7.0.80.0030.02717.40
7.0.70.0060.02417.58
7.0.60.0160.02416.81
7.0.50.0080.02317.53
7.0.40.0160.02315.54
7.0.30.0200.02015.68
7.0.20.0110.02916.21
7.0.10.0050.02316.12
7.0.00.0070.02416.15
5.6.400.0090.00314.35
5.6.390.0040.00714.09
5.6.380.0070.00414.06
5.6.370.0050.00514.31
5.6.360.0000.01114.17
5.6.350.0100.00514.15
5.6.340.0040.00814.14
5.6.330.0060.01014.12
5.6.320.0030.00914.10
5.6.310.0040.00914.04
5.6.300.0080.02116.32
5.6.290.0050.02216.25
5.6.280.0060.02616.43
5.6.270.0050.02616.30
5.6.260.0070.02516.34
5.6.250.0070.02416.35
5.6.240.0040.02716.32
5.6.230.0050.02516.27
5.6.220.0070.03016.41
5.6.210.0070.02516.24
5.6.200.0070.02316.43
5.6.190.0060.02216.38
5.6.180.0060.02516.26
5.6.170.0040.02616.37
5.6.160.0050.02516.35
5.6.150.0110.02216.37
5.6.140.0050.02716.29
5.6.130.0090.02016.33
5.6.120.0050.02416.47
5.6.110.0050.03216.29
5.6.100.0040.02616.27
5.6.90.0040.02916.28
5.6.80.0070.02216.01
5.6.70.0050.02316.04
5.6.60.0080.03016.13
5.6.50.0080.02316.03
5.6.40.0040.02715.94
5.6.30.0040.02716.04
5.6.20.0080.02315.98
5.6.10.0100.02116.06
5.6.00.0070.02716.16
5.5.380.0060.03114.08
5.5.370.0100.02714.15
5.5.360.0090.03214.16
5.5.350.0080.02814.12
5.5.340.0020.03514.30
5.5.330.0050.03414.44
5.5.320.0110.02414.39
5.5.310.0110.02614.43
5.5.300.0070.02814.50
5.5.290.0030.03314.31
5.5.280.0080.02814.48
5.5.270.0120.03014.42
5.5.260.0120.02514.51
5.5.250.0100.02714.17
5.5.240.0050.03013.98
5.5.230.0120.02513.95
5.5.220.0080.03113.99
5.5.210.0080.03114.03
5.5.200.0070.03014.05
5.5.190.0020.03714.06
5.5.180.0030.03214.02
5.5.170.0060.00310.76
5.5.160.0100.03013.89
5.5.150.0070.03514.01
5.5.140.0050.03313.90
5.5.130.0070.02813.81
5.5.120.0030.03014.07
5.5.110.0050.03013.95
5.5.100.0110.03514.05
5.5.90.0050.04313.78
5.5.80.0080.02714.07
5.5.70.0080.02714.07
5.5.60.0110.02513.97
5.5.50.0050.03013.85
5.5.40.0100.02713.91
5.5.30.0070.02913.96
5.5.20.0080.02814.02
5.5.10.0090.02713.96
5.5.00.0100.03213.80
5.4.450.0090.02915.08
5.4.440.0050.03115.09
5.4.430.0050.03214.98
5.4.420.0090.02515.16
5.4.410.0080.02614.75
5.4.400.0050.02914.86
5.4.390.0030.03314.81
5.4.380.0080.02714.84
5.4.370.0100.02314.93
5.4.360.0060.02814.93
5.4.350.0100.03614.89
5.4.340.0140.02414.81
5.4.330.0050.00510.69
5.4.320.0050.04114.74
5.4.310.0090.02614.67
5.4.300.0090.02914.88
5.4.290.0050.03014.99
5.4.280.0090.02714.93
5.4.270.0080.02914.73
5.4.260.0070.03014.88
5.4.250.0030.03114.85
5.4.240.0070.02914.84
5.4.230.0070.02814.73
5.4.220.0030.04614.74
5.4.210.0030.03014.82
5.4.200.0050.02814.91
5.4.190.0100.02514.84
5.4.180.0040.03014.88
5.4.170.0030.03014.78
5.4.160.0100.02514.77
5.4.150.0050.03214.92
5.4.140.0090.02613.55
5.4.130.0120.02813.58
5.4.120.0100.02313.45
5.4.110.0080.03013.74
5.4.100.0050.03213.61
5.4.90.0090.02513.80
5.4.80.0150.02013.52
5.4.70.0020.03213.67
5.4.60.0050.03513.61
5.4.50.0140.02213.66
5.4.40.0040.03113.70
5.4.30.0050.02913.48
5.4.20.0060.02613.59
5.4.10.0090.02413.67
5.4.00.0090.02513.31
5.3.290.0150.02812.44
5.3.280.0030.03212.54
5.3.270.0060.04012.45
5.3.260.0070.02812.37
5.3.250.0060.02812.58
5.3.240.0090.03412.35
5.3.230.0070.02912.29
5.3.220.0030.03712.32
5.3.210.0050.03012.40
5.3.200.0120.02412.36
5.3.190.0100.03112.37
5.3.180.0080.02712.42
5.3.170.0100.02512.50
5.3.160.0030.02812.45
5.3.150.0070.02512.54
5.3.140.0070.02512.41
5.3.130.0020.03312.51
5.3.120.0080.02812.38
5.3.110.0090.02912.37
5.3.100.0030.02912.25
5.3.90.0020.03012.19
5.3.80.0030.03012.15
5.3.70.0050.02712.15
5.3.60.0050.03012.08
5.3.50.0060.02512.16
5.3.40.0090.02712.16
5.3.30.0020.03012.12
5.3.20.0050.02512.03
5.3.10.0050.03811.76
5.3.00.0060.03511.85
5.2.170.0030.02310.27
5.2.160.0070.02010.17
5.2.150.0100.01710.18
5.2.140.0100.01810.26
5.2.130.0040.01910.15
5.2.120.0050.02010.19
5.2.110.0070.02010.17
5.2.100.0060.02010.26
5.2.90.0050.02110.23
5.2.80.0030.02510.17
5.2.70.0070.02010.19
5.2.60.0030.02710.11
5.2.50.0030.02310.07
5.2.40.0020.02310.21
5.2.30.0090.0179.94
5.2.20.0090.01810.01
5.2.10.0030.0229.94
5.2.00.0100.0189.83
5.1.60.0040.0199.21
5.1.50.0070.0179.21
5.1.40.0060.0179.32
5.1.30.0050.0189.30
5.1.20.0040.0189.37
5.1.10.0060.0179.26
5.1.00.0010.0219.10
5.0.50.0080.0108.45
5.0.40.0010.0238.45
5.0.30.0000.0248.45
5.0.20.0020.0138.45
5.0.10.0000.0188.45
5.0.00.0030.0208.45
4.4.90.0050.0088.45
4.4.80.0030.0108.45
4.4.70.0020.0128.45
4.4.60.0030.0128.45
4.4.50.0000.0148.45
4.4.40.0040.0178.45
4.4.30.0040.0108.45
4.4.20.0050.0108.45
4.4.10.0020.0148.45
4.4.00.0030.0218.45
4.3.110.0020.0178.45
4.3.100.0020.0138.45
4.3.90.0030.0108.45
4.3.80.0020.0208.45
4.3.70.0000.0118.45
4.3.60.0000.0128.45
4.3.50.0030.0118.45
4.3.40.0030.0178.45
4.3.30.0030.0128.45
4.3.20.0020.0138.45
4.3.10.0030.0128.45
4.3.00.0000.0138.45

preferences:
30.17 ms | 403 KiB | 5 Q