3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get() { return SOME_CONST; } define('sOmE_CoNsT', 1, true); echo get(); // Prints 1 define('SOME_CONST', 2); echo get(); // Prints 2

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.1.100.0070.00017.35
8.1.90.0070.00017.37
8.1.80.0000.00717.41
8.1.70.0000.00717.41
8.1.60.0000.00817.45
8.1.50.0060.00317.48
8.1.40.0030.00517.43
8.1.30.0030.00617.46
8.1.20.0030.00917.57
8.1.10.0050.00317.56
8.1.00.0000.00717.30
8.0.230.0000.00716.95
8.0.220.0030.00316.86
8.0.210.0050.00216.86
8.0.200.0030.00316.95
8.0.190.0070.00016.92
8.0.180.0000.00716.99
8.0.170.0020.00516.94
8.0.160.0030.00516.97
8.0.150.0070.00016.85
8.0.140.0070.00017.00
8.0.130.0030.00313.44
8.0.120.0080.00016.83
8.0.110.0040.00416.88
8.0.100.0040.00416.85
8.0.90.0040.00416.75
8.0.80.0120.00916.91
8.0.70.0040.00416.90
8.0.60.0000.00716.83
8.0.50.0020.00517.02
8.0.30.0100.00917.08
8.0.20.0100.00817.40
8.0.10.0030.00317.13
8.0.00.0170.00316.89
7.4.300.0030.00316.39
7.4.290.0020.00516.47
7.4.280.0020.00516.30
7.4.270.0030.00316.44
7.4.260.0040.00416.54
7.4.250.0080.00016.47
7.4.240.0000.00716.44
7.4.230.0000.00816.47
7.4.220.0120.00616.64
7.4.210.0060.00816.42
7.4.200.0040.00416.57
7.4.160.0060.00916.38
7.4.150.0030.01317.40
7.4.140.0120.00817.86
7.4.130.0090.00816.49
7.4.120.0120.01216.50
7.4.110.0100.00716.38
7.4.100.0060.00916.73
7.4.90.0060.01216.36
7.4.80.0090.00919.39
7.4.70.0030.01316.55
7.4.60.0080.01216.56
7.4.50.0080.00416.52
7.4.40.0060.01016.70
7.4.30.0110.01116.45
7.4.00.0020.01515.08
7.3.330.0030.00313.07
7.3.320.0050.00013.31
7.3.310.0040.00416.35
7.3.300.0070.00016.30
7.3.290.0030.00416.30
7.3.280.0080.01416.27
7.3.270.0090.00917.40
7.3.260.0080.00916.49
7.3.250.0110.00616.41
7.3.240.0070.01116.56
7.3.230.0140.01016.52
7.3.210.0100.00716.46
7.3.200.0130.00316.57
7.3.190.0050.01116.42
7.3.180.0100.00716.26
7.3.170.0110.00616.41
7.3.160.0110.00816.56
7.3.120.0120.00614.80
7.3.110.0070.01114.75
7.3.100.0070.00714.83
7.3.90.0060.00914.79
7.3.80.0030.01014.52
7.3.70.0040.01414.76
7.3.60.0110.00814.86
7.3.50.0090.00814.71
7.3.40.0060.01114.74
7.3.30.0080.00914.76
7.3.20.0050.01016.68
7.3.10.0070.00616.58
7.3.00.0050.01016.44
7.2.330.0060.01316.78
7.2.320.0110.00616.48
7.2.310.0100.00716.71
7.2.300.0100.01016.54
7.2.290.0070.01016.70
7.2.250.0060.01215.18
7.2.240.0150.00414.64
7.2.230.0040.01514.93
7.2.220.0070.01115.20
7.2.210.0000.01414.74
7.2.200.0110.00814.89
7.2.190.0080.01114.96
7.2.180.0070.01114.88
7.2.170.0030.00814.93
7.2.160.0110.00214.63
7.2.150.0140.00416.71
7.2.140.0060.00716.71
7.2.130.0140.00616.84
7.2.120.0130.00716.70
7.2.110.0090.01216.75
7.2.100.0090.00616.77
7.2.90.0090.00816.60
7.2.80.0050.01216.64
7.2.70.0110.01116.91
7.2.60.0040.01316.71
7.2.50.0160.00016.98
7.2.40.0900.01117.42
7.2.30.0760.01017.44
7.2.20.0460.00917.37
7.2.10.0760.00817.47
7.2.00.0510.00817.34
7.1.330.0070.00715.85
7.1.320.0030.00715.88
7.1.310.0080.00315.82
7.1.300.0120.00515.77
7.1.290.0050.00515.66
7.1.280.0060.00515.53
7.1.270.0070.00715.70
7.1.260.0080.00615.77
7.1.250.0070.00715.60
7.1.240.0160.00815.58
7.1.230.0140.00915.63
7.1.220.0170.00715.74
7.1.210.0240.00315.62
7.1.200.0060.01215.67
7.1.190.0120.01215.77
7.1.180.0140.00615.59
7.1.170.0060.01215.72
7.1.160.0870.00716.23
7.1.150.0840.00816.20
7.1.140.0420.00916.19
7.1.130.0820.00816.37
7.1.120.0840.00716.23
7.1.110.0890.00916.00
7.1.100.0750.00815.90
7.1.90.0570.00615.86
7.1.80.0690.00715.86
7.1.70.0640.00715.50
7.1.60.0820.01026.16
7.1.50.0670.01026.02
7.1.40.0620.01025.76
7.1.30.0550.01025.71
7.1.20.0580.01125.83
7.1.10.0480.00814.97
7.1.00.0460.00615.08
7.0.330.0120.01015.05
7.0.320.0190.00715.09
7.0.310.0130.00915.01
7.0.300.0240.00315.36
7.0.290.0480.01016.01
7.0.280.0160.00715.22
7.0.270.0800.00815.95
7.0.260.0850.00915.89
7.0.250.0810.00615.62
7.0.240.0680.00815.55
7.0.230.0970.00915.60
7.0.220.0860.01115.57
7.0.210.0760.00914.77
7.0.200.0610.00814.91
7.0.190.0530.00714.98
7.0.180.0470.00814.67
7.0.170.0600.00814.69
7.0.160.0520.00914.74
7.0.150.0600.00814.63
7.0.140.0540.01014.73
7.0.130.0580.00614.83
7.0.120.0570.00714.92
7.0.110.0630.00814.67
7.0.100.0560.00814.74
7.0.90.0610.00914.71
7.0.80.0510.00914.74
7.0.70.0510.00914.66
7.0.60.0490.00914.54
7.0.50.0620.00814.79
7.0.40.0510.00514.79
7.0.30.0560.00814.81
7.0.20.0550.00714.78
7.0.10.0610.01014.76
7.0.00.0510.00814.76
5.6.400.0170.00314.33
5.6.390.0130.00813.86
5.6.380.0160.00414.12
5.6.370.0160.01013.84
5.6.360.0090.00914.40
5.6.350.0120.01614.38
5.6.340.0140.01113.84
5.6.330.0230.00313.98
5.6.320.0150.00314.16
5.6.310.0150.00614.19
5.6.300.0140.04619.10
5.6.290.0150.04519.10
5.6.280.0160.04619.27
5.6.270.0150.04719.33
5.6.260.0150.04419.16
5.6.250.0180.04619.17
5.6.240.0160.04619.22
5.6.230.0140.04419.10
5.6.220.0160.04419.14
5.6.210.0160.04219.11
5.6.200.0130.04619.19
5.6.190.0150.05319.09
5.6.180.0170.05019.10
5.6.170.0190.04519.20
5.6.160.0190.04319.21
5.6.150.0150.04319.22
5.6.140.0180.04719.21
5.6.130.0160.04419.18
5.6.120.0180.04519.15
5.6.110.0150.04219.11
5.6.100.0130.04419.17
5.6.90.0140.04619.16
5.6.80.0110.04618.69
5.6.70.0140.04518.72
5.6.60.0130.04218.74
5.6.50.0160.04018.64
5.6.40.0100.04518.68
5.6.30.0120.04518.58
5.6.20.0140.04718.58
5.6.10.0150.04518.64
5.6.00.0130.04518.72
5.5.380.0160.04016.72
5.5.370.0130.04216.64
5.5.360.0180.04116.69
5.5.350.0140.04216.62
5.5.340.0140.04216.99
5.5.330.0160.04616.97
5.5.320.0140.04516.84
5.5.310.0180.05117.03
5.5.300.0160.04616.95
5.5.290.0150.04716.99
5.5.280.0160.04116.92
5.5.270.0140.05016.96
5.5.260.0120.04616.95
5.5.250.0150.04416.87
5.5.240.0120.04216.50
5.5.230.0160.04316.44
5.5.220.0140.04316.42
5.5.210.0130.04416.49
5.5.200.0170.04516.59
5.5.190.0120.04516.52
5.5.180.0130.04716.54
5.5.170.0130.00313.67
5.5.160.0170.04316.50
5.5.150.0130.04216.43
5.5.140.0160.03716.52
5.5.130.0140.04316.49
5.5.120.0130.03916.43
5.5.110.0140.04016.62
5.5.100.0120.04916.39
5.5.90.0130.04016.36
5.5.80.0110.04116.47
5.5.70.0140.04316.48
5.5.60.0180.03616.41
5.5.50.0160.03616.37
5.5.40.0150.03616.39
5.5.30.0130.03916.40
5.5.20.0120.04516.46
5.5.10.0100.04316.36
5.5.00.0110.04716.44
5.4.450.0160.04317.34
5.4.440.0140.04017.30
5.4.430.0150.04317.20
5.4.420.0160.03917.23
5.4.410.0120.04117.18
5.4.400.0100.04716.92
5.4.390.0140.03917.05
5.4.380.0150.03816.96
5.4.370.0120.04016.99
5.4.360.0150.04716.84
5.4.350.0130.04216.92
5.4.340.0120.04316.92
5.4.330.0100.00710.63
5.4.320.0120.04816.92
5.4.310.0110.04016.94
5.4.300.0130.04016.99
5.4.290.0110.04116.91
5.4.280.0140.03816.90
5.4.270.0140.03817.01
5.4.260.0120.04417.01
5.4.250.0110.04317.00
5.4.240.0110.04316.96
5.4.230.0120.04116.97
5.4.220.0130.04017.03
5.4.210.0130.03916.97
5.4.200.0090.04317.04
5.4.190.0110.04217.00
5.4.180.0140.04116.85
5.4.170.0120.03916.88
5.4.160.0110.04017.01
5.4.150.0120.04316.95
5.4.140.0120.03915.12
5.4.130.0130.03515.07
5.4.120.0120.03815.20
5.4.110.0100.03815.22
5.4.100.0110.03915.15
5.4.90.0090.03915.11
5.4.80.0140.04115.05
5.4.70.0110.03815.10
5.4.60.0100.04115.16
5.4.50.0130.03615.10
5.4.40.0110.03815.20
5.4.30.0090.04215.10
5.4.20.0120.03615.19
5.4.10.0140.03615.03
5.4.00.0140.03614.72
5.3.290.0140.04213.83
5.3.280.0150.03713.73
5.3.270.0120.03913.72
5.3.260.0120.04013.77
5.3.250.0100.04013.60
5.3.240.0120.04313.59
5.3.230.0120.03813.55
5.3.220.0160.03613.61
5.3.210.0120.03813.61
5.3.200.0130.04013.59
5.3.190.0130.03713.67
5.3.180.0110.04013.53
5.3.170.0130.03613.76
5.3.160.0140.03813.63
5.3.150.0140.03813.68
5.3.140.0100.04313.70
5.3.130.0120.03713.67
5.3.120.0100.03913.66
5.3.110.0140.03813.65
5.3.100.0110.04013.22
5.3.90.0130.03613.31
5.3.80.0120.03813.28
5.3.70.0100.04113.31
5.3.60.0140.03813.26
5.3.50.0130.04513.22
5.3.40.0110.03813.17
5.3.30.0120.03813.25
5.3.20.0110.03712.97
5.3.10.0140.03512.95
5.3.00.0110.03912.97
5.2.170.0100.03111.10
5.2.160.0100.03311.15
5.2.150.0090.03110.97
5.2.140.0110.03311.01
5.2.130.0090.03211.03
5.2.120.0120.03210.97
5.2.110.0110.03411.05
5.2.100.0090.02911.07
5.2.90.0110.02911.07
5.2.80.0100.03010.95
5.2.70.0110.03511.07
5.2.60.0100.03311.01
5.2.50.0100.03111.02
5.2.40.0110.02911.00
5.2.30.0120.03210.88
5.2.20.0100.03210.88
5.2.10.0100.02810.80
5.2.00.0080.03310.73
5.1.60.0090.02610.24
5.1.50.0120.02510.29
5.1.40.0090.02610.21
5.1.30.0080.03010.47
5.1.20.0080.02710.42
5.1.10.0060.03010.26
5.1.00.0100.02510.35
5.0.50.0070.0229.38
5.0.40.0090.0219.38
5.0.30.0060.0329.38
5.0.20.0090.0219.38
5.0.10.0050.0229.38
5.0.00.0070.0309.38
4.4.90.0060.0159.38
4.4.80.0050.0199.38
4.4.70.0050.0179.38
4.4.60.0040.0179.38
4.4.50.0050.0179.38
4.4.40.0070.0239.38
4.4.30.0070.0159.38
4.4.20.0080.0159.38
4.4.10.0050.0199.38
4.4.00.0050.0259.38
4.3.110.0050.0189.38
4.3.100.0040.0169.38
4.3.90.0050.0159.38
4.3.80.0040.0259.38
4.3.70.0050.0169.38
4.3.60.0030.0199.38
4.3.50.0060.0189.38
4.3.40.0070.0249.38
4.3.30.0050.0149.38
4.3.20.0040.0169.38
4.3.10.0050.0169.38
4.3.00.0050.0189.38

preferences:
13.58 ms | 406 KiB | 5 Q