3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constants = get_defined_constants(); print_r(array_intersect_key($constants, array_flip(preg_grep('/^P(?:REG|CRE)_/', array_keys($constants)))));

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.01318.43
8.3.50.0110.01021.23
8.3.40.0110.01118.92
8.3.30.0080.00819.01
8.3.20.0030.00520.34
8.3.10.0130.00620.57
8.3.00.0090.00019.38
8.2.180.0070.01016.88
8.2.170.0070.00722.96
8.2.160.0130.00322.20
8.2.150.0030.00524.18
8.2.140.0060.00924.66
8.2.130.0050.00326.16
8.2.120.0070.00022.41
8.2.110.0100.00322.18
8.2.100.0120.00018.16
8.2.90.0030.00618.00
8.2.80.0030.00618.89
8.2.70.0030.00618.16
8.2.60.0040.00718.03
8.2.50.0050.00518.10
8.2.40.0040.00419.47
8.2.30.0000.00819.21
8.2.20.0040.00417.77
8.2.10.0050.00318.20
8.2.00.0000.00917.93
8.1.280.0070.01025.92
8.1.270.0060.00922.32
8.1.260.0120.00626.35
8.1.250.0000.00928.09
8.1.240.0200.00318.72
8.1.230.0090.00321.07
8.1.220.0000.00817.91
8.1.210.0060.00318.77
8.1.200.0100.00317.38
8.1.190.0030.00717.47
8.1.180.0050.00319.03
8.1.170.0040.00419.09
8.1.160.0000.00719.18
8.1.150.0090.00018.93
8.1.140.0070.00017.70
8.1.130.0000.00717.62
8.1.120.0040.00417.73
8.1.110.0000.00817.61
8.1.100.0070.00017.72
8.1.90.0070.00017.77
8.1.80.0090.00017.60
8.1.70.0040.00417.62
8.1.60.0030.00617.74
8.1.50.0050.00217.80
8.1.40.0090.00017.75
8.1.30.0060.00317.71
8.1.20.0050.00317.74
8.1.10.0050.00217.63
8.1.00.0040.00417.70
8.0.300.0040.00418.77
8.0.290.0030.00916.88
8.0.280.0050.00318.47
8.0.270.0000.00717.38
8.0.260.0000.00616.96
8.0.250.0030.00317.23
8.0.240.0000.00717.09
8.0.230.0000.00717.06
8.0.220.0040.00317.14
8.0.210.0080.00017.12
8.0.200.0030.00317.18
8.0.190.0070.00017.23
8.0.180.0060.00317.17
8.0.170.0060.00317.09
8.0.160.0000.00717.25
8.0.150.0040.00417.18
8.0.140.0040.00417.14
8.0.130.0030.00313.54
8.0.120.0050.00317.00
8.0.110.0000.00816.97
8.0.100.0040.00416.96
8.0.90.0000.00717.13
8.0.80.0040.01117.18
8.0.70.0080.00016.92
8.0.60.0040.00417.09
8.0.50.0050.00316.91
8.0.30.0100.00817.36
8.0.20.0080.01417.40
8.0.10.0000.00817.11
8.0.00.0070.01016.84
7.4.330.0050.00015.00
7.4.320.0030.00316.90
7.4.300.0040.00416.79
7.4.290.0000.00816.75
7.4.280.0120.00016.78
7.4.270.0070.00016.81
7.4.260.0080.00316.69
7.4.250.0040.00416.79
7.4.240.0060.00116.87
7.4.230.0050.00217.01
7.4.220.0130.00716.95
7.4.210.0040.01116.91
7.4.200.0040.00416.71
7.4.160.0130.00316.84
7.4.150.0080.01117.40
7.4.140.0120.00517.86
7.4.130.0100.00716.80
7.4.120.0100.00916.75
7.4.110.0100.00716.96
7.4.100.0100.01516.62
7.4.90.0070.01116.93
7.4.80.0060.01619.39
7.4.70.0060.01216.79
7.4.60.0130.00316.79
7.4.50.0030.00616.75
7.4.40.0120.00316.74
7.4.30.0000.01716.64
7.4.00.0100.00715.35
7.3.330.0050.00213.31
7.3.320.0030.00313.32
7.3.310.0000.00816.52
7.3.300.0070.00016.35
7.3.290.0100.01016.44
7.3.280.0140.00716.46
7.3.270.0120.00617.40
7.3.260.0130.00416.74
7.3.250.0100.00816.46
7.3.240.0060.01216.45
7.3.230.0100.01316.59
7.3.210.0100.00716.51
7.3.200.0070.01316.61
7.3.190.0140.00816.66
7.3.180.0080.00816.87
7.3.170.0130.00316.59
7.3.160.0130.00316.50
7.3.30.0080.00914.82
7.3.20.1320.00714.87
7.3.10.1320.00714.88
7.3.00.1140.00514.95
7.2.330.0140.00416.83
7.2.320.0050.01416.79
7.2.310.0090.00916.77
7.2.300.0100.01016.96
7.2.290.0100.01316.91
7.2.160.0090.00915.06
7.2.150.1250.01015.06
7.2.140.1230.00915.07
7.2.130.1040.00615.13
7.2.120.1160.00815.09
7.2.110.0930.00715.13
7.2.100.1260.00715.12
7.2.90.1080.00715.11
7.2.80.0820.01115.23
7.2.70.0660.01115.11
7.2.60.0790.00815.27
7.2.50.1000.00815.09
7.2.40.1150.01015.13
7.2.30.1010.00615.07
7.2.20.0900.00915.18
7.2.10.0940.00715.09
7.2.00.0770.00715.82
7.1.270.1410.00714.04
7.1.260.1150.00914.12
7.1.250.0760.00914.05
7.1.240.1320.00514.14
7.1.230.0840.00914.08
7.1.220.0930.00814.07
7.1.210.0850.00714.07
7.1.200.1000.00814.42
7.1.190.0880.00714.17
7.1.180.1010.00914.08
7.1.170.1040.00714.02
7.1.160.1200.00914.21
7.1.150.1120.00614.19
7.1.140.1000.00713.99
7.1.130.0960.00714.18
7.1.120.0930.00714.16
7.1.110.0940.01014.19
7.1.100.0790.00914.77
7.1.90.0810.01114.09
7.1.80.0740.00914.13
7.1.70.0610.00814.69
7.1.60.0680.00814.87
7.1.50.0650.00614.67
7.1.40.0690.00814.01
7.1.30.0710.01114.13
7.1.20.1390.00914.09
7.1.10.0520.00914.04
7.1.00.0570.01915.45
7.0.330.1130.00913.64
7.0.320.0740.00913.71
7.0.310.0800.00913.77
7.0.300.1080.01013.77
7.0.290.0930.00613.76
7.0.280.1170.00613.73
7.0.270.0910.00913.81
7.0.260.1010.00713.86
7.0.250.1000.00613.89
7.0.240.0950.00713.76
7.0.230.0800.00413.79
7.0.220.0750.00813.80
7.0.210.1130.00913.79
7.0.200.0560.00914.32
7.0.190.0710.01013.70
7.0.180.0750.00713.85
7.0.170.0670.00913.79
7.0.160.0720.01113.66
7.0.150.0580.01013.74
7.0.140.0570.01915.21
7.0.130.0780.00813.74
7.0.120.0620.00813.87
7.0.110.0670.01013.67
7.0.100.0650.00813.87
7.0.90.0630.01013.72
7.0.80.0580.00413.74
7.0.70.0740.00613.69
7.0.60.0590.02114.71
7.0.50.0510.01514.49
7.0.40.0570.01414.92
7.0.30.0500.01514.80
7.0.20.0440.01614.96
7.0.10.0500.02714.88
7.0.00.0550.01514.88
5.6.400.0160.01214.49
5.6.390.0130.01114.47
5.6.380.0100.01314.44
5.6.370.0190.00914.44
5.6.360.0130.01114.58
5.6.350.0150.00914.62
5.6.340.0180.00914.58
5.6.330.0170.00914.67
5.6.320.0150.01314.67
5.6.310.0150.01214.68
5.6.300.0120.01314.55
5.6.290.0190.00914.70
5.6.280.0110.02115.62
5.6.270.0160.00914.56
5.6.260.0150.01314.44
5.6.250.0170.00914.61
5.6.240.0170.00914.56
5.6.230.0170.00814.53
5.6.220.0130.01014.49
5.6.210.0120.01915.52
5.6.200.0140.02415.10
5.6.190.0140.01615.57
5.6.180.0660.01515.45
5.6.170.0170.01815.50
5.6.160.0130.02215.45
5.6.150.0140.02015.06
5.6.140.0130.02015.09
5.6.130.0120.01515.16
5.6.120.0120.02015.66
5.6.110.0110.01615.58
5.6.100.0120.01915.50
5.6.90.0170.01815.65
5.6.80.0160.01815.47
5.6.70.0850.01215.43
5.6.60.0160.00914.46
5.6.50.0130.00814.34
5.6.40.0120.01414.39
5.6.30.0160.01014.52
5.6.20.0180.01114.38
5.6.10.0110.01214.52
5.6.00.0150.01114.33
5.5.380.0140.00914.51
5.5.370.0070.01314.38
5.5.360.0100.01114.39
5.5.350.0150.01915.41
5.5.340.0110.02615.04
5.5.330.0150.01815.42
5.5.320.0170.01815.33
5.5.310.0160.01715.53
5.5.300.0120.01915.08
5.5.290.0100.01815.08
5.5.280.0130.01215.60
5.5.270.0130.01215.56
5.5.260.0140.01715.45
5.5.250.0130.01715.44
5.5.240.0120.02215.52
5.5.230.0120.01014.40
5.5.220.0130.01214.30
5.5.210.0120.01014.42
5.5.200.0140.01014.48
5.5.190.0140.01014.34
5.5.180.0150.01014.50
5.5.170.0100.01314.38
5.5.160.0130.01014.40
5.5.150.0160.00814.30
5.5.140.0180.00514.30
5.5.130.0160.00814.39
5.5.120.0120.01214.49
5.5.110.0150.00814.45
5.5.100.0140.01014.33
5.5.90.0120.01214.30
5.5.80.0110.01214.42
5.5.70.0130.00914.40
5.5.60.0140.01014.31
5.5.50.0120.01114.48
5.5.40.0160.00914.40
5.5.30.0130.01214.34
5.5.20.0100.01114.36
5.5.10.0170.00914.38
5.5.00.0090.01314.21
5.4.450.0150.01212.45
5.4.440.0120.01812.56
5.4.430.0120.01812.55
5.4.420.0170.00612.57
5.4.410.0210.00412.42
5.4.400.0210.00612.33
5.4.390.0180.00512.45
5.4.380.0200.00412.40
5.4.370.0190.00412.31
5.4.360.0210.00512.34
5.4.350.0170.00712.47
5.4.340.0210.00412.42
5.4.330.0100.00611.11
5.4.320.0100.01311.31
5.4.310.0090.01411.28
5.4.300.0100.01411.28
5.4.290.0120.01011.36
5.4.280.0090.01211.27
5.4.270.0090.01311.26
5.4.260.0090.01411.34
5.4.250.0080.01211.18
5.4.240.0100.01211.30
5.4.230.0100.01311.33
5.4.220.0120.01111.27
5.4.210.0120.01111.30
5.4.200.0100.01011.23
5.4.190.0080.01011.28
5.4.180.0100.01111.23
5.4.170.0080.01111.31
5.4.160.0110.01111.22
5.4.150.0100.01211.22
5.4.140.0110.01411.34
5.4.130.0090.01211.28
5.4.120.0130.01011.27
5.4.110.0070.01411.29
5.4.100.0090.01111.26
5.4.90.0110.01111.28
5.4.80.0090.01211.20
5.4.70.0110.01111.21
5.4.60.0080.01211.30
5.4.50.0060.01411.23
5.4.40.0060.01211.29
5.4.30.0090.01111.22
5.4.20.0080.01111.21
5.4.10.0080.01111.24
5.4.00.0080.01311.18

preferences:
49.92 ms | 401 KiB | 5 Q