3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const PLOP = 'plop'; const GLOP = 'glop'; public static $DATA = [self::PLOP, self::GLOP]; } var_dump(A::$DATA);

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.0070.01116.50
8.3.50.0080.01022.11
8.3.40.0100.01018.59
8.3.30.0110.00418.95
8.3.20.0080.00020.07
8.3.10.0000.00821.64
8.3.00.0080.00020.90
8.2.180.0130.00716.63
8.2.170.0140.00322.96
8.2.160.0030.01022.26
8.2.150.0130.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00019.83
8.2.110.0040.00722.07
8.2.100.0090.00317.50
8.2.90.0050.00319.23
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0090.00018.03
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0000.00717.92
8.2.20.0040.00417.66
8.2.10.0000.00817.86
8.2.00.0070.00017.65
8.1.280.0120.00625.92
8.1.270.0060.00320.73
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00622.56
8.1.230.0080.00319.01
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00617.23
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0000.00820.22
8.1.160.0040.00421.88
8.1.150.0040.00418.71
8.1.140.0000.00717.31
8.1.130.0000.00717.75
8.1.120.0050.00317.30
8.1.110.0040.00417.35
8.1.100.0070.00017.31
8.1.90.0030.00417.29
8.1.80.0000.00717.31
8.1.70.0030.00317.34
8.1.60.0030.00617.49
8.1.50.0030.00517.42
8.1.40.0040.00417.22
8.1.30.0080.00017.35
8.1.20.0070.00017.44
8.1.10.0000.00717.32
8.1.00.0070.00017.23
8.0.300.0040.00418.77
8.0.290.0050.00516.63
8.0.280.0000.00818.38
8.0.270.0050.00317.11
8.0.260.0000.00617.15
8.0.250.0000.00716.84
8.0.240.0040.00416.69
8.0.230.0000.00816.84
8.0.220.0070.00016.79
8.0.210.0000.00816.77
8.0.200.0030.00616.86
8.0.190.0000.00716.72
8.0.180.0040.00416.79
8.0.170.0050.00216.76
8.0.160.0090.00016.75
8.0.150.0040.00316.64
8.0.140.0030.00416.73
8.0.130.0050.00013.22
8.0.120.0020.00516.65
8.0.110.0000.00716.67
8.0.100.0040.00416.55
8.0.90.0050.00316.78
8.0.80.0120.00416.82
8.0.70.0070.00016.69
8.0.60.0000.00716.72
8.0.50.0050.00216.58
8.0.30.0120.00917.08
8.0.20.0100.00917.40
8.0.10.0050.00216.84
8.0.00.0090.01016.59
7.4.330.0000.00515.03
7.4.320.0000.00616.46
7.4.300.0030.00316.46
7.4.290.0050.00316.25
7.4.280.0040.00416.45
7.4.270.0050.00216.37
7.4.260.0030.00316.42
7.4.250.0030.00316.33
7.4.240.0050.00216.46
7.4.230.0000.00716.55
7.4.220.0030.01316.35
7.4.210.0060.00916.48
7.4.200.0040.00316.41
7.4.160.0070.01416.29
7.4.150.0100.00717.40
7.4.140.0080.00917.86
7.4.130.0080.01116.39
7.4.120.0090.00716.43
7.4.110.0150.00316.46
7.4.100.0100.00716.26
7.4.90.0030.01316.23
7.4.80.0070.01016.46
7.4.70.0110.01116.30
7.4.60.0100.00616.30
7.4.50.0050.00316.35
7.4.40.0060.01016.23
7.4.30.0140.00516.43
7.4.00.0040.01214.54
7.3.330.0050.00013.06
7.3.320.0150.00013.25
7.3.310.0040.00416.26
7.3.300.0000.00616.24
7.3.290.0070.00716.17
7.3.280.0100.00516.22
7.3.270.0120.00617.40
7.3.260.0070.01416.34
7.3.250.0060.01116.23
7.3.240.0090.00916.26
7.3.230.0090.00916.39
7.3.210.0080.00816.35
7.3.200.0070.01419.39
7.3.190.0120.00316.52
7.3.180.0120.00316.21
7.3.170.0090.01216.54
7.3.160.0070.01116.54
7.3.10.0100.00316.66
7.3.00.0040.00816.47
7.2.330.0080.00816.58
7.2.320.0110.00616.39
7.2.310.0130.01016.57
7.2.300.0070.01016.54
7.2.290.0100.00716.18
7.2.130.0000.01216.97
7.2.120.0030.01016.50
7.2.110.0030.01316.93
7.2.100.0070.00416.41
7.2.90.0030.01416.94
7.2.80.0000.01316.68
7.2.70.0070.00416.61
7.2.60.0110.00716.75
7.2.50.0110.00416.74
7.2.40.0040.01116.59
7.2.30.0070.00716.62
7.2.20.0030.01016.53
7.2.10.0050.00516.78
7.2.00.0020.01417.92
7.1.250.0000.01215.31
7.1.100.0030.00718.14
7.1.70.0070.01017.06
7.1.60.0100.01419.46
7.1.50.0070.01116.87
7.1.00.0100.07022.36
7.0.200.0130.00314.73
7.0.140.0030.03322.12
7.0.60.0100.05319.86
7.0.50.0030.04317.86
7.0.40.0100.06720.21
7.0.30.0330.07320.17
7.0.20.0300.04320.19
7.0.10.0130.08020.12
7.0.00.0070.04320.10
5.6.280.0030.07320.89
5.6.210.0170.06720.61
5.6.200.0000.04718.27
5.6.190.0030.04720.77
5.6.180.0370.06720.42
5.6.170.0300.05720.71
5.6.160.0070.08320.54
5.6.150.0030.04718.17
5.6.140.0070.04718.28
5.6.130.0130.07318.15
5.6.120.0100.07320.90
5.6.110.0030.08720.98
5.6.100.0100.08020.96
5.6.90.0100.04021.07
5.6.80.0030.04320.37
5.5.350.0300.06320.32
5.5.340.0070.03717.98
5.5.330.0100.03720.42
5.5.320.0030.05320.24
5.5.310.0430.06320.43
5.5.300.0030.06718.09
5.5.290.0100.08017.93
5.5.280.0100.05320.88
5.5.270.0100.08020.87
5.5.260.0130.05320.87
5.5.250.0100.05720.77
5.5.240.0030.07720.18
5.4.450.0670.06319.57
5.4.440.0830.06319.46
5.4.430.0700.06019.44
5.4.420.0900.06019.18
5.4.410.0100.05319.18
5.4.400.0970.06318.87
5.4.390.0200.05718.73
5.4.380.0270.07718.84
5.4.370.0300.05018.50
5.4.360.0170.06018.75
5.4.350.0200.05318.53
5.4.340.0200.07018.71
5.4.320.0300.07018.50
5.4.310.0100.07018.75
5.4.300.0130.06318.69
5.4.290.0230.05018.55
5.4.280.0230.05018.85
5.4.270.0230.07718.82
5.4.260.0330.04018.77
5.4.250.0200.06318.83
5.4.240.0230.06318.84
5.4.230.0230.05318.69
5.4.220.0230.05318.49
5.4.210.0300.06718.70
5.4.200.0330.05016.59
5.4.190.0270.05318.45
5.4.180.0200.05318.67
5.4.170.0200.05718.54
5.4.160.0170.05718.70
5.4.150.0270.05718.71
5.4.140.0100.06016.30
5.4.130.0200.05316.23
5.4.120.0270.04316.21
5.4.110.0170.05316.28
5.4.100.0230.05716.32
5.4.90.0230.06016.16
5.4.80.0200.07016.25
5.4.70.0100.06716.41
5.4.60.0200.06016.19
5.4.50.0200.05016.26
5.4.40.0300.04016.16
5.4.30.0300.04016.39
5.4.20.0170.05716.17
5.4.10.0370.03716.17
5.4.00.0130.05315.68
5.3.290.0130.07314.77
5.3.280.0300.04714.79
5.3.270.0230.07014.65
5.3.260.0430.06014.82
5.3.250.0230.05314.65
5.3.240.0200.05314.60
5.3.230.0230.05014.70
5.3.220.0230.05014.66
5.3.210.0270.04714.60
5.3.200.0170.05714.73
5.3.190.0330.03714.77
5.3.180.0270.04014.61
5.3.170.0370.04314.60
5.3.160.0200.05314.60
5.3.150.0170.05314.66
5.3.140.0230.04714.75
5.3.130.0200.05714.60
5.3.120.0200.05714.57
5.3.110.0200.06014.64
5.3.100.0170.05314.17
5.3.90.0330.04014.21
5.3.80.0270.06314.11
5.3.70.0300.06314.07
5.3.60.0170.05314.16
5.3.50.0130.05714.01
5.3.40.0300.04714.01
5.3.30.0230.04713.92
5.3.20.0230.04313.75
5.3.10.0130.06013.78
5.3.00.0130.05713.84
5.2.170.0170.06011.26
5.2.160.0300.03711.13
5.2.150.0270.03311.27
5.2.140.0170.04311.25
5.2.130.0130.04711.29
5.2.120.0170.04311.13
5.2.110.0170.04311.20
5.2.100.0170.04011.09
5.2.90.0130.04711.16
5.2.80.0170.04011.12
5.2.70.0200.05711.20
5.2.60.0230.05311.14
5.2.50.0230.04311.05
5.2.40.0130.05711.03
5.2.30.0200.04011.01
5.2.20.0170.04011.19
5.2.10.0100.04310.88
5.2.00.0200.03710.93
5.1.60.0130.05010.03
5.1.50.0130.03310.10
5.1.40.0130.03710.01
5.1.30.0130.03710.34
5.1.20.0170.03310.45
5.1.10.0130.03710.24
5.1.00.0170.03310.24
5.0.50.0100.0308.57
5.0.40.0030.0338.59
5.0.30.0100.0508.40
5.0.20.0100.0278.33
5.0.10.0000.0378.19
5.0.00.0130.0378.29
4.4.90.0130.0175.98
4.4.80.0070.0275.89
4.4.70.0070.0235.93
4.4.60.0070.0305.86
4.4.50.0030.0275.88
4.4.40.0030.0505.93
4.4.30.0030.0275.98
4.4.20.0030.0275.93
4.4.10.0100.0235.94
4.4.00.0030.0375.92
4.3.110.0130.0175.80
4.3.100.0030.0235.89
4.3.90.0070.0235.77
4.3.80.0070.0335.82
4.3.70.0070.0275.76
4.3.60.0130.0205.81
4.3.50.0100.0205.77
4.3.40.0100.0305.88
4.3.30.0000.0274.55
4.3.20.0030.0234.54
4.3.10.0100.0174.57
4.3.00.0200.03014.42

preferences:
55.03 ms | 401 KiB | 5 Q