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.60.0090.00618.05
8.3.50.0100.01022.82
8.3.40.0110.00418.90
8.3.30.0070.01118.91
8.3.20.0040.00420.16
8.3.10.0030.00621.69
8.3.00.0040.00419.66
8.2.180.0110.01118.29
8.2.170.0150.00022.96
8.2.160.0150.00020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00819.48
8.2.110.0090.00020.44
8.2.100.0110.00017.78
8.2.90.0080.00018.03
8.2.80.0100.00018.03
8.2.70.0040.00417.75
8.2.60.0040.00417.75
8.2.50.0050.00317.63
8.2.40.0050.00318.15
8.2.30.0000.00719.30
8.2.20.0080.00017.87
8.2.10.0000.00717.98
8.2.00.0030.00617.67
8.1.280.0170.00025.92
8.1.270.0080.00023.97
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0120.00923.72
8.1.230.0000.01122.05
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00317.22
8.1.180.0000.00818.10
8.1.170.0050.00318.56
8.1.160.0040.00418.75
8.1.150.0070.00018.77
8.1.140.0080.00017.30
8.1.130.0040.00417.81
8.1.120.0040.00517.35
8.1.110.0040.00417.43
8.1.100.0030.00317.29
8.1.90.0040.00417.27
8.1.80.0040.00417.30
8.1.70.0070.00017.26
8.1.60.0090.00017.48
8.1.50.0050.00317.58
8.1.40.0040.00417.45
8.1.30.0080.00017.64
8.1.20.0080.00017.65
8.1.10.0000.00917.63
8.1.00.0000.00717.43
8.0.300.0070.00019.86
8.0.290.0050.00216.75
8.0.280.0000.00818.43
8.0.270.0000.00717.26
8.0.260.0000.00617.09
8.0.250.0000.00716.92
8.0.240.0000.00716.88
8.0.230.0050.00316.89
8.0.220.0030.00316.93
8.0.210.0030.00516.95
8.0.200.0040.00417.00
8.0.190.0040.00417.03
8.0.180.0000.00816.91
8.0.170.0080.00016.87
8.0.160.0040.00417.02
8.0.150.0040.00416.94
8.0.140.0040.00416.90
8.0.130.0060.00313.37
8.0.120.0040.00416.80
8.0.110.0000.00816.84
8.0.100.0080.00016.87
8.0.90.0050.00217.04
8.0.80.0130.00316.88
8.0.70.0050.00316.84
8.0.60.0040.00416.66
8.0.50.0000.00716.94
8.0.30.0040.01217.31
8.0.20.0100.01217.40
8.0.10.0050.00317.05
8.0.00.0130.00716.70
7.4.330.0050.00015.08
7.4.320.0060.00016.50
7.4.300.0000.00616.59
7.4.290.0070.00316.40
7.4.280.0040.00416.48
7.4.270.0020.00516.60
7.4.260.0070.00016.44
7.4.250.0000.00816.46
7.4.240.0020.00616.51
7.4.230.0000.00716.68
7.4.220.0090.01316.55
7.4.210.0070.00716.48
7.4.200.0000.00716.29
7.4.160.0090.00916.36
7.4.150.0090.01617.40
7.4.140.0070.01017.86
7.4.130.0050.01216.50
7.4.120.0140.00616.47
7.4.110.0100.03116.43
7.4.100.0140.00716.58
7.4.90.0060.01016.48
7.4.80.0140.00319.39
7.4.70.0150.00616.53
7.4.60.0060.01216.45
7.4.50.0050.00216.50
7.4.40.0150.00816.64
7.4.30.0130.00316.35
7.4.00.0060.00915.20
7.3.330.0060.00013.45
7.3.320.0000.00513.19
7.3.310.0030.00316.33
7.3.300.0000.00616.25
7.3.290.0060.01216.36
7.3.280.0080.00816.32
7.3.270.0100.01017.40
7.3.260.0030.02016.55
7.3.250.0110.00716.52
7.3.240.0040.01116.42
7.3.230.0030.01616.57
7.3.210.0040.01316.40
7.3.200.0140.01119.39
7.3.190.0180.00016.38
7.3.180.0090.00916.17
7.3.170.0060.01316.58
7.3.160.0120.00416.38
7.3.10.0030.00916.69
7.3.00.0060.00916.65
7.2.330.0120.00616.59
7.2.320.0130.00616.62
7.2.310.0130.00416.55
7.2.300.0060.01016.65
7.2.290.0090.00816.59
7.2.130.0040.01216.86
7.2.120.0120.00316.87
7.2.110.0000.01316.65
7.2.100.0040.01116.83
7.2.90.0040.01117.03
7.2.80.0030.00616.73
7.2.70.0040.01116.62
7.2.60.0030.01216.56
7.2.50.0080.00416.98
7.2.40.0100.00617.04
7.2.30.0090.00616.80
7.2.20.0030.00617.02
7.2.10.0060.01216.56
7.2.00.0050.00918.14
7.1.250.0030.00715.53
7.1.200.0180.00315.34
7.1.100.0030.01018.07
7.1.70.0060.00316.89
7.1.60.0130.01019.34
7.1.50.0220.01034.79
7.1.00.0030.07722.45
7.0.200.0000.00716.88
7.0.140.0030.07722.07
7.0.60.0170.06020.05
7.0.50.0170.07017.88
7.0.40.0100.04720.21
7.0.30.0430.04720.24
7.0.20.0100.04720.10
7.0.10.0300.06020.10
7.0.00.0000.04720.16
5.6.280.0070.07021.12
5.6.210.0230.05720.69
5.6.200.0030.04718.18
5.6.190.0070.08720.64
5.6.180.0330.06020.30
5.6.170.0270.03320.54
5.6.160.0100.09020.61
5.6.150.0000.04318.16
5.6.140.0070.03718.25
5.6.130.0100.08318.14
5.6.120.0030.08721.12
5.6.110.0130.05021.02
5.6.100.0030.08721.13
5.6.90.0100.06721.00
5.6.80.0030.08720.40
5.6.70.0170.08020.48
5.5.350.0170.07020.35
5.5.340.0070.07018.07
5.5.330.0100.04320.41
5.5.320.0000.04320.47
5.5.310.0270.06320.23
5.5.300.0030.05717.99
5.5.290.0030.04017.91
5.5.280.0070.03720.77
5.5.270.0030.08720.78
5.5.260.0100.08020.93
5.5.250.0130.08020.69
5.5.240.0130.06020.19
5.4.450.0200.04319.20
5.4.440.0200.04019.52
5.4.430.0600.03719.34
5.4.420.0070.05319.56
5.4.410.0130.05718.97
5.4.400.0100.06318.76
5.4.390.0170.06718.76
5.4.380.0130.05318.52
5.4.370.0170.05018.76
5.4.360.0130.05018.73
5.4.350.0070.03714.02
5.4.340.0130.03013.78
5.4.320.0070.04014.21
5.4.310.0170.04314.32
5.4.300.0270.02714.25
5.4.290.0130.04014.27
5.4.280.0130.04014.15
5.4.270.0030.04314.09
5.4.260.0100.04014.11
5.4.250.0070.04014.31
5.4.240.0170.04014.39
5.4.230.0100.04014.16
5.4.220.0100.03714.16
5.4.210.0070.04014.27
5.4.200.0130.03714.13
5.4.190.0130.03314.36
5.4.180.0200.03014.17
5.4.170.0170.04014.31
5.4.160.0130.04014.18
5.4.150.0070.04314.17
5.4.140.0170.03713.83
5.4.130.0100.04313.82
5.4.120.0070.04013.93
5.4.110.0230.02713.75
5.4.100.0100.03713.77
5.4.90.0070.04313.85
5.4.80.0170.03013.77
5.4.70.0100.03713.88
5.4.60.0130.03313.79
5.4.50.0200.03313.80
5.4.40.0070.04013.70
5.4.30.0100.04013.78
5.4.20.0030.04713.65
5.4.10.0130.03313.77
5.4.00.0170.03713.25
5.3.290.0130.04714.80
5.3.280.0130.04014.69
5.3.270.0130.04314.56
5.3.260.0200.03314.56
5.3.250.0170.05014.66
5.3.240.0130.04014.63
5.3.230.0070.05014.57
5.3.220.0270.03014.54
5.3.210.0100.04314.70
5.3.200.0030.05014.70
5.3.190.0200.04714.56
5.3.180.0170.03314.59
5.3.170.0100.04314.54
5.3.160.0130.04314.52
5.3.150.0030.04314.53
5.3.140.0130.03714.46
5.3.130.0130.04014.50
5.3.120.0230.03314.50
5.3.110.0170.03714.46
5.3.100.0270.03314.07
5.3.90.0130.03714.11
5.3.80.0130.03714.08
5.3.70.0070.04314.05
5.3.60.0130.04014.10
5.3.50.0170.03714.05
5.3.40.0030.04314.00
5.3.30.0170.03013.89
5.3.20.0170.03313.84
5.3.10.0170.03013.75
5.3.00.0130.03313.63
5.2.170.0100.03011.13
5.2.160.0100.03011.15
5.2.150.0200.02011.14
5.2.140.0070.03311.18
5.2.130.0070.03311.15
5.2.120.0030.03711.13
5.2.110.0030.04011.14
5.2.100.0070.03011.05
5.2.90.0030.04011.24
5.2.80.0170.03711.08
5.2.70.0100.03311.25
5.2.60.0200.02310.98
5.2.50.0130.03310.95
5.2.40.0100.03311.03
5.2.30.0070.03711.13
5.2.20.0130.03010.89
5.2.10.0030.03310.79
5.2.00.0070.03010.87
5.1.60.0130.02010.07
5.1.50.0070.03010.12
5.1.40.0070.0279.90
5.1.30.0100.02710.28
5.1.20.0070.02710.35
5.1.10.0170.03010.22
5.1.00.0030.04010.05
5.0.50.0030.0238.51
5.0.40.0100.0208.39
5.0.30.0100.0308.29
5.0.20.0030.0308.20
5.0.10.0070.0208.31
5.0.00.0070.0308.22
4.4.90.0000.0205.91
4.4.80.0070.0135.80
4.4.70.0030.0175.85
4.4.60.0100.0105.88
4.4.50.0000.0205.86
4.4.40.0030.0235.82
4.4.30.0030.0175.82
4.4.20.0000.0235.95
4.4.10.0070.0135.97
4.4.00.0070.0235.85
4.3.110.0030.0205.78
4.3.100.0030.0175.79
4.3.90.0030.0175.76
4.3.80.0070.0275.88
4.3.70.0070.0135.86
4.3.60.0170.0035.75
4.3.50.0030.0175.73
4.3.40.0070.0235.71
4.3.30.0000.0204.53
4.3.20.0000.0204.59
4.3.10.0000.0174.56
4.3.00.0070.01316.65

preferences:
50.82 ms | 401 KiB | 5 Q