3v4l.org

run code in 200+ PHP versions simultaneously
<?php $argv[1] = "PDO,FETCH_CLASSTYPE"; ?> <?=constant(explode(',',$argv[1])[0]."::".explode(',',$argv[1])[1])==262144?"Hello, world ":a;

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)
7.4.00.0080.01015.08
7.3.120.0090.00814.77
7.3.110.0060.00714.68
7.3.100.0050.01014.96
7.3.90.0030.00814.69
7.3.80.0060.00715.00
7.3.70.0060.00914.83
7.3.60.0050.00814.82
7.3.50.0050.00814.66
7.3.40.0100.00714.71
7.3.30.0060.01114.85
7.3.20.0020.01216.44
7.3.10.0080.00616.54
7.3.00.0060.00816.54
7.2.250.0030.01215.17
7.2.240.0050.01214.98
7.2.230.0070.00715.06
7.2.220.0050.00815.12
7.2.210.0080.00315.23
7.2.200.0040.00915.10
7.2.190.0000.01014.86
7.2.180.0020.01014.98
7.2.170.0050.01015.06
7.2.160.0070.00714.77
7.2.150.0090.00617.02
7.2.140.0080.00816.66
7.2.130.0060.00816.83
7.2.120.0040.01216.83
7.2.110.0020.00916.82
7.2.100.0070.00417.05
7.2.90.0020.01117.06
7.2.80.0040.00616.96
7.2.70.0030.01217.11
7.2.60.0060.01116.96
7.2.50.0110.00416.86
7.2.40.0040.01016.64
7.2.30.0050.00917.05
7.2.20.0040.00916.82
7.2.10.0030.01216.84
7.2.00.0040.00916.87
7.1.330.0040.01215.64
7.1.320.0030.00915.78
7.1.310.0060.01015.91
7.1.300.0050.00615.67
7.1.290.0060.00815.53
7.1.280.0050.00815.90
7.1.270.0060.00616.03
7.1.260.0030.01215.84
7.1.250.0050.00615.75
7.1.240.0070.00415.98
7.1.230.0070.01015.88
7.1.220.0080.00615.80
7.1.210.0030.00715.89
7.1.200.0040.00815.81
7.1.190.0070.00315.65
7.1.180.0040.00715.91
7.1.170.0030.01615.86
7.1.160.0060.00615.74
7.1.150.0040.01115.85
7.1.140.0070.01015.92
7.1.130.0060.01015.83
7.1.120.0080.00015.51
7.1.110.0030.00715.87
7.1.100.0000.01415.90
7.1.90.0030.00615.83
7.1.80.0680.01216.63
7.1.70.0660.00915.97
7.1.60.0740.01428.08
7.1.50.0840.00727.79
7.1.40.0920.01027.52
7.1.30.0960.01127.54
7.1.20.0850.01127.67
7.1.10.0820.01115.63
7.1.00.0680.00915.87
7.0.330.0000.00815.50
7.0.320.0000.00915.27
7.0.310.0000.01415.44
7.0.300.0070.01315.36
7.0.290.0080.00815.33
7.0.280.0100.00615.28
7.0.270.0030.01015.28
7.0.260.0060.00615.36
7.0.250.0040.00815.54
7.0.240.0110.00015.35
7.0.230.0030.00515.41
7.0.220.0080.00315.47
7.0.210.0080.00415.34
7.0.200.0730.00615.74
7.0.190.0660.00915.58
7.0.180.0780.01115.41
7.0.170.0940.00915.50
7.0.160.0980.00915.30
7.0.150.0740.01315.34
7.0.140.0610.01215.41
7.0.130.0670.01415.49
7.0.120.0770.00915.58
7.0.110.0990.01215.32
7.0.100.0730.00915.52
7.0.90.0890.00715.46
7.0.80.0660.00915.50
7.0.70.0660.00915.48
7.0.60.0700.01215.34
7.0.50.0710.00715.52
7.0.40.0620.01414.80
7.0.30.0730.00614.86
7.0.20.0720.00814.83
7.0.10.0720.00714.70
7.0.00.0760.01114.75
5.6.400.0030.01414.66
5.6.390.0070.00714.43
5.6.380.0070.00714.36
5.6.370.0050.00514.37
5.6.360.0000.01214.20
5.6.350.0100.00314.17
5.6.340.0040.01114.56
5.6.330.0120.00314.55
5.6.320.0000.01114.65
5.6.310.0070.00714.49
5.6.300.0090.05018.72
5.6.290.0100.04518.72
5.6.280.0130.04618.76
5.6.270.0130.05118.90
5.6.260.0160.05018.70
5.6.250.0130.05018.67
5.6.240.0100.05018.59
5.6.230.0120.04818.70
5.6.220.0080.05618.72
5.6.210.0150.04618.62
5.6.200.0100.04618.61
5.6.190.0110.04818.67
5.6.180.0090.05518.65
5.6.170.0110.05218.66
5.6.160.0120.05518.64
5.6.150.0120.05318.76
5.6.140.0090.04518.75
5.6.130.0090.04318.69
5.6.120.0110.04418.83
5.6.110.0060.04918.69
5.6.100.0090.05118.65
5.6.90.0130.04518.58
5.6.80.0100.04218.32
5.6.70.0100.04718.28
5.6.60.0070.04718.25
5.6.50.0120.04618.20
5.6.40.0110.05118.25
5.6.30.0110.04718.34
5.6.20.0050.04518.28
5.6.10.0120.05018.23
5.6.00.0070.04218.14
5.5.380.0060.06717.45
5.5.370.0160.05917.56
5.5.360.0190.07017.43
5.5.350.0160.07217.43
5.5.340.0070.05818.03
5.5.330.0130.06018.05
5.5.320.0130.05817.80
5.5.310.0140.05918.07
5.5.300.0130.06917.80
5.5.290.0070.06917.96
5.5.280.0190.06017.93
5.5.270.0150.06817.98
5.5.260.0240.07317.69
5.5.250.0160.06817.78
5.5.240.0080.06917.34
5.5.230.0100.05817.32
5.5.220.0180.06117.44
5.5.210.0190.06917.34
5.5.200.0130.07317.10
5.5.190.0140.05717.13
5.5.180.0210.05017.32
5.5.160.0150.08317.40
5.5.150.0190.07117.32
5.5.140.0100.08117.25
5.5.130.0230.07817.32
5.5.120.0120.06717.32
5.5.110.0100.07217.24
5.5.100.0130.05117.20
5.5.90.0060.06116.95
5.5.80.0130.05717.32
5.5.70.0160.06417.03
5.5.60.0180.05217.01
5.5.50.0170.07117.14
5.5.40.0100.07317.20
5.5.30.0120.07216.94
5.5.20.0050.06417.32
5.5.10.0130.07817.17
5.5.00.0220.05517.20
5.4.450.0070.07419.20
5.4.440.0130.06319.09
5.4.430.0130.07819.31
5.4.420.0130.08219.37
5.4.410.0060.07419.08
5.4.400.0030.05819.01
5.4.390.0190.05718.85
5.4.380.0090.07718.99
5.4.370.0150.07318.98
5.4.360.0030.08818.80
5.4.350.0100.05719.08
5.4.340.0110.08918.85
5.4.320.0070.09019.08
5.4.310.0130.08018.98
5.4.300.0200.05919.07
5.4.290.0150.06918.93
5.4.280.0130.07519.07
5.4.270.0150.06118.85
5.4.260.0100.06219.00
5.4.250.0100.06019.07
5.4.240.0200.06518.98
5.4.230.0250.05819.03
5.4.220.0130.06218.98
5.4.210.0130.07418.96
5.4.200.0120.06218.75
5.4.190.0090.07618.97
5.4.180.0200.06019.16
5.4.170.0090.06218.84
5.4.160.0120.05819.06
5.4.150.0100.08118.75
5.4.140.0250.06216.38
5.4.130.0060.07316.33
5.4.120.0130.05116.49
5.4.110.0210.06816.32
5.4.100.0140.06016.52
5.4.90.0130.05016.50
5.4.80.0160.06116.50
5.4.70.0170.06416.36
5.4.60.0040.06416.42
5.4.50.0110.06316.44
5.4.40.0170.05416.66
5.4.30.0100.05916.54
5.4.20.0100.05816.57
5.4.10.0100.06216.53
5.4.00.0050.05516.00
5.3.290.0310.07214.82
5.3.280.0180.07514.73
5.3.270.0190.07314.75
5.3.260.0120.06814.59
5.3.250.0240.06314.59
5.3.240.0080.07014.41
5.3.230.0100.05914.79
5.3.220.0140.06314.71
5.3.210.0160.07514.76
5.3.200.0070.06814.57
5.3.190.0130.06114.55
5.3.180.0150.06514.73
5.3.170.0100.05314.55
5.3.160.0060.07214.66
5.3.150.0100.06814.67
5.3.140.0160.07014.59
5.3.130.0200.05214.74
5.3.120.0140.05914.54
5.3.110.0120.05514.68
5.3.100.0120.05113.96
5.3.90.0210.05813.97
5.3.80.0280.04014.07
5.3.70.0150.05014.07
5.3.60.0030.06913.98
5.3.50.0120.06214.06
5.3.40.0180.06013.93
5.3.30.0000.06614.10
5.3.20.0220.04613.88
5.3.10.0120.06013.78
5.3.00.0100.07413.79
5.2.170.0250.04010.93
5.2.160.0180.03611.27
5.2.150.0030.06211.35
5.2.140.0100.04211.37
5.2.130.0060.04411.24
5.2.120.0070.04311.21
5.2.110.0070.05011.23
5.2.100.0070.05011.23
5.2.90.0100.05711.22
5.2.80.0060.06111.32
5.2.70.0200.03711.02
5.2.60.0060.04911.15
5.2.50.0060.05110.95
5.2.40.0170.04411.12
5.2.30.0070.04311.07
5.2.20.0030.04811.16
5.2.10.0100.04310.90
5.2.00.0060.05111.01
5.1.60.0100.0339.97
5.1.50.0100.03410.02
5.1.40.0030.03910.12
5.1.30.0070.03910.64
5.1.20.0130.03810.52
5.1.10.0070.04910.37
5.1.00.0060.05210.13
5.0.50.0060.0288.68
5.0.40.0170.0258.49
5.0.30.0100.0448.41
5.0.20.0110.0268.50
5.0.10.0080.0398.34
5.0.00.0180.0448.24
4.4.90.0100.0177.64
4.4.80.0030.0277.64
4.4.70.0100.0247.64
4.4.60.0140.0207.64
4.4.50.0090.0287.64
4.4.40.0060.0327.64
4.4.30.0060.0197.64
4.4.20.0030.0347.64
4.4.10.0040.0307.64
4.4.00.0090.0337.64
4.3.110.0060.0277.64
4.3.100.0070.0287.64
4.3.90.0060.0257.64
4.3.80.0070.0437.64
4.3.70.0040.0317.64
4.3.60.0080.0277.64
4.3.50.0000.0377.64
4.3.40.0060.0497.64
4.3.30.0030.0327.64
4.3.20.0070.0287.64
4.3.10.0070.0317.64
4.3.00.0000.0337.64