3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const SCALE_FACTOR = 1000; public function myprint() { echo "flsdfsd ---> {self::$SCALE_FACTOR}"; } } $myTest = new Test; $myTest->myprint();

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.0070.00716.75
8.3.60.0090.00618.30
8.3.50.0150.00422.90
8.3.40.0070.00718.73
8.3.30.0100.00718.97
8.3.20.0050.00320.22
8.3.10.0040.00421.64
8.3.00.0050.00319.67
8.2.190.0100.01016.72
8.2.180.0090.00918.54
8.2.170.0070.00722.96
8.2.160.0140.00720.37
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.26
8.2.110.0060.00322.20
8.2.100.0040.00718.00
8.2.90.0080.00017.78
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0050.00517.80
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0040.00419.38
8.2.20.0000.00817.82
8.2.10.0040.00417.92
8.2.00.0000.00717.66
8.1.280.0100.00725.92
8.1.270.0030.00623.86
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.38
8.1.230.0110.00020.92
8.1.220.0040.00417.74
8.1.210.0040.00418.88
8.1.200.0060.00317.35
8.1.190.0000.00817.30
8.1.180.0100.00018.10
8.1.170.0000.00818.51
8.1.160.0000.00718.86
8.1.150.0040.00418.80
8.1.140.0000.00717.25
8.1.130.0030.00317.80
8.1.120.0040.00517.42
8.1.110.0040.00417.29
8.1.100.0000.00717.42
8.1.90.0070.00017.28
8.1.80.0030.00417.38
8.1.70.0000.00717.37
8.1.60.0030.00617.56
8.1.50.0030.00517.40
8.1.40.0000.00917.41
8.1.30.0040.00417.60
8.1.20.0000.00817.53
8.1.10.0040.00417.44
8.1.00.0000.00717.54
8.0.300.0040.00420.03
8.0.290.0030.00617.16
8.0.280.0000.00718.46
8.0.270.0030.00317.15
8.0.260.0030.00317.28
8.0.250.0030.00316.92
8.0.240.0030.00316.89
8.0.230.0030.00316.90
8.0.220.0030.00316.84
8.0.210.0050.00316.93
8.0.200.0070.00017.04
8.0.190.0030.00317.00
8.0.180.0040.00417.02
8.0.170.0080.00016.85
8.0.160.0050.00516.84
8.0.150.0070.00016.95
8.0.140.0040.00416.89
8.0.130.0000.00513.25
8.0.120.0040.00416.87
8.0.110.0000.00716.84
8.0.100.0070.00016.97
8.0.90.0000.00716.96
8.0.80.0150.00316.93
8.0.70.0040.00416.82
8.0.60.0000.00716.88
8.0.50.0070.00017.00
8.0.30.0060.01617.17
8.0.20.0100.00917.40
8.0.10.0070.00016.98
8.0.00.0130.00516.53
7.4.330.0050.00015.07
7.4.320.0030.00316.41
7.4.300.0000.00616.59
7.4.290.0060.00316.44
7.4.280.0030.00516.49
7.4.270.0000.00716.51
7.4.260.0050.00316.37
7.4.250.0040.00416.35
7.4.240.0060.00216.44
7.4.230.0070.00016.57
7.4.220.0150.00516.55
7.4.210.0120.00916.58
7.4.200.0070.00016.53
7.4.160.0110.00616.68
7.4.150.0120.00617.40
7.4.140.0050.01317.86
7.4.130.0100.00616.54
7.4.120.0090.01116.70
7.4.110.0100.01016.64
7.4.100.0190.00316.55
7.4.90.0060.01116.48
7.4.80.0230.00319.39
7.4.70.0150.00516.59
7.4.60.0120.00616.31
7.4.50.0000.00916.48
7.4.40.0090.00616.52
7.4.30.0130.00316.54
7.4.00.0030.01015.04
7.3.330.0060.00013.35
7.3.320.0000.00513.18
7.3.310.0030.00316.25
7.3.300.0060.00016.36
7.3.290.0100.00516.32
7.3.280.0040.01316.33
7.3.270.0040.01517.40
7.3.260.0030.01316.42
7.3.250.0130.00516.54
7.3.240.0090.00616.36
7.3.230.0130.00316.39
7.3.210.0090.00916.32
7.3.200.0150.00319.39
7.3.190.0080.00816.47
7.3.180.0060.01216.36
7.3.170.0100.00616.48
7.3.160.0110.00616.58
7.2.330.0130.00516.41
7.2.320.0110.00616.64
7.2.310.0120.00616.72
7.2.300.0130.00316.50
7.2.290.0060.01316.66
7.2.60.0060.00616.84
7.1.200.0000.01215.86
7.1.100.0030.00917.90
7.1.70.0030.01317.13
7.1.60.0070.01719.34
7.1.50.0200.00734.43
7.1.00.0070.07322.54
7.0.200.0060.00316.90
7.0.140.0100.07721.96
7.0.60.0100.08319.78
7.0.50.0030.04317.80
7.0.40.0100.08320.10
7.0.30.0330.07720.32
7.0.20.0130.05320.18
7.0.10.0030.09020.23
7.0.00.0070.09020.29
5.6.280.0000.07720.89
5.6.210.0170.04720.64
5.6.200.0030.08318.19
5.6.190.0000.08720.61
5.6.180.0200.08720.50
5.6.170.0330.06320.56
5.6.160.0030.05020.50
5.6.150.0170.03718.18
5.6.140.0030.04718.19
5.6.130.0070.03718.14
5.6.120.0100.03720.93
5.6.110.0030.04320.89
5.6.100.0030.08321.04
5.6.90.0070.05320.99
5.6.80.0070.04020.38
5.5.350.0170.08320.34
5.5.340.0100.05717.96
5.5.330.0100.05020.27
5.5.320.0430.04720.27
5.5.310.0270.08020.50
5.5.300.0030.05318.04
5.5.290.0070.05317.93
5.5.280.0070.08320.88
5.5.270.0030.09020.76
5.5.260.0000.05720.88
5.5.250.0030.08720.61
5.5.240.0230.05020.04
5.4.450.0230.04319.55
5.4.440.0230.03719.46
5.4.430.0200.03319.63
5.4.420.0170.04719.53
5.4.410.0070.05719.09
5.4.400.0200.04018.49
5.4.390.0030.06018.44
5.4.380.0100.06018.76
5.4.370.0100.05318.44
5.4.360.0130.04718.63
5.4.350.0130.03313.91
5.4.340.0100.03713.77
5.4.320.0100.03714.20
5.4.310.0100.04014.49
5.4.300.0070.04014.50
5.4.290.0170.03014.28
5.4.280.0070.04014.31
5.4.270.0000.04714.16
5.4.260.0130.04314.16
5.4.250.0100.03714.18
5.4.240.0070.04314.13
5.4.230.0170.04314.09
5.4.220.0170.04714.10
5.4.210.0070.04014.15
5.4.200.0100.04014.13
5.4.190.0070.04014.21
5.4.180.0100.03714.12
5.4.170.0030.04314.39
5.4.160.0070.04014.15
5.4.150.0170.03014.15
5.4.140.0100.04013.85
5.4.130.0070.04013.85
5.4.120.0200.03013.79
5.4.110.0070.04014.01
5.4.100.0070.04013.84
5.4.90.0170.03313.77
5.4.80.0170.04013.67
5.4.70.0130.05013.77
5.4.60.0170.05013.80
5.4.50.0130.04013.93
5.4.40.0170.03713.88
5.4.30.0170.03013.75
5.4.20.0130.03313.88
5.4.10.0030.04013.75
5.4.00.0130.03313.32
5.3.290.0070.04314.66
5.3.280.0130.03714.52
5.3.270.0200.03714.63
5.3.260.0130.03714.64
5.3.250.0100.03714.70
5.3.240.0070.04314.52
5.3.230.0130.03714.55
5.3.220.0230.02714.61
5.3.210.0100.04014.74
5.3.200.0130.03314.59
5.3.190.0170.03314.55
5.3.180.0030.04314.71
5.3.170.0130.04014.72
5.3.160.0170.03314.70
5.3.150.0130.04314.48
5.3.140.0100.04314.66
5.3.130.0130.03714.54
5.3.120.0130.04014.50
5.3.110.0100.04314.54
5.3.100.0100.04314.14
5.3.90.0070.04014.15
5.3.80.0130.04313.95
5.3.70.0170.04713.97
5.3.60.0100.03713.99
5.3.50.0100.04314.11
5.3.40.0170.04013.93
5.3.30.0100.03713.97
5.3.20.0130.04013.79
5.3.10.0130.03713.63
5.3.00.0130.03313.66
5.2.170.0100.03311.18
5.2.160.0030.03311.14
5.2.150.0030.03711.14
5.2.140.0070.03311.13
5.2.130.0070.03011.08
5.2.120.0070.03011.09
5.2.110.0070.03311.02
5.2.100.0030.03711.26
5.2.90.0100.02711.26
5.2.80.0200.02011.09
5.2.70.0030.03311.03
5.2.60.0070.03311.09
5.2.50.0100.03011.05
5.2.40.0030.03311.14
5.2.30.0070.03011.00
5.2.20.0070.03010.91
5.2.10.0130.02310.78
5.2.00.0000.03310.73
5.1.60.0130.02010.03
5.1.50.0070.02310.13
5.1.40.0130.02010.00
5.1.30.0070.02710.36
5.1.20.0170.02010.30
5.1.10.0130.02710.01
5.1.00.0070.03310.01
5.0.50.0000.0278.69
5.0.40.0030.0208.37
5.0.30.0030.0378.28
5.0.20.0070.0178.11
5.0.10.0000.0238.30
5.0.00.0070.0278.34
4.4.90.0000.0205.95
4.4.80.0070.0205.89
4.4.70.0030.0175.98
4.4.60.0000.0205.89
4.4.50.0000.0205.86
4.4.40.0070.0235.98
4.4.30.0030.0175.82
4.4.20.0030.0175.89
4.4.10.0030.0175.88
4.4.00.0070.0235.84
4.3.110.0030.0175.79
4.3.100.0030.0205.77
4.3.90.0030.0175.75
4.3.80.0070.0205.73
4.3.70.0000.0175.73
4.3.60.0000.0205.72
4.3.50.0030.0175.74
4.3.40.0070.0205.80
4.3.30.0000.0174.48
4.3.20.0030.0174.48
4.3.10.0030.0204.41
4.3.00.0070.01016.65

preferences:
31.98 ms | 401 KiB | 5 Q