3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo file_get_contents('/etc/passwd');

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.1rc30.0000.00816.89
8.1rc20.0040.00416.78
8.1rc10.0000.00816.96
8.0.130.0030.00313.29
8.0.120.0030.00616.75
8.0.110.0000.00716.86
8.0.100.0070.00016.72
8.0.90.0040.00416.82
8.0.80.0040.00716.83
8.0.70.0040.00316.74
8.0.60.0020.00516.66
8.0.50.0020.00516.86
8.0.30.0100.00616.86
8.0.20.0080.00716.91
8.0.10.0040.00316.90
8.0.00.0100.00516.61
7.4.260.0000.00613.04
7.4.250.0030.00716.29
7.4.240.0020.00516.44
7.4.230.0040.00416.48
7.4.220.0060.01016.45
7.4.210.0040.00916.50
7.4.200.0050.00216.39
7.4.190.0070.00016.45
7.4.180.0000.00816.44
7.4.160.0070.00516.32
7.4.150.0070.00516.49
7.4.140.0110.00616.42
7.4.130.0120.00416.38
7.4.120.0010.01316.40
7.4.110.0120.00216.48
7.4.100.0030.01016.38
7.4.90.0070.00516.39
7.4.80.0050.00717.84
7.4.70.0050.00716.28
7.4.60.0090.00616.39
7.4.50.0030.00516.44
7.4.40.0060.00616.20
7.4.30.0050.00616.20
7.4.20.0070.00516.36
7.4.10.0060.01115.89
7.4.00.0080.00715.53
7.3.330.0000.00613.04
7.3.320.0000.00612.95
7.3.310.0070.00016.29
7.3.300.0000.00716.19
7.3.290.0050.00816.21
7.3.280.0060.00716.19
7.3.270.0070.00516.20
7.3.260.0060.00816.27
7.3.250.0090.00516.33
7.3.240.0090.00316.38
7.3.230.0090.00316.34
7.3.220.0030.00316.11
7.3.210.0080.00316.24
7.3.200.0050.00916.09
7.3.190.0080.00416.23
7.3.180.0050.00616.26
7.3.170.0050.00716.31
7.3.160.0060.00616.20
7.3.150.0070.00516.15
7.3.140.0070.00816.25
7.3.130.0060.00815.65
7.3.120.0040.01115.38
7.3.110.0070.00715.63
7.3.100.0070.00715.45
7.3.90.0070.00715.48
7.3.80.0080.00715.20
7.3.70.0090.00715.04
7.3.60.0100.00515.04
7.3.50.0070.00915.07
7.3.40.0090.00714.95
7.3.30.0100.00915.03
7.3.20.0120.00615.54
7.3.10.0140.00615.55
7.3.00.0080.00915.56
7.2.340.0030.00316.33
7.2.330.0120.00216.29
7.2.320.0100.00216.34
7.2.310.0070.00516.44
7.2.300.0020.01016.43
7.2.290.0030.00816.30
7.2.280.0100.00716.34
7.2.270.0090.00716.26
7.2.260.0050.01015.73
7.2.250.0050.00815.80
7.2.240.0090.00615.92
7.2.230.0080.00615.53
7.2.220.0050.00815.49
7.2.210.0100.00815.46
7.2.200.0060.00915.27
7.2.190.0090.00715.18
7.2.180.0070.00715.20
7.2.170.0090.00915.15
7.2.160.0070.00915.19
7.2.150.0100.00715.65
7.2.140.0140.00615.69
7.2.130.0110.00815.79
7.2.120.0150.00615.73
7.2.110.0230.00815.50
7.2.100.0220.01015.59
7.2.90.0190.00915.55
7.2.80.0160.00915.54
7.2.70.0150.00815.59
7.2.60.0580.00915.43
7.2.50.0620.00915.44
7.2.40.0620.00915.55
7.2.30.0430.00715.55
7.2.20.0320.00915.51
7.2.10.0740.00915.49
7.2.00.0520.00715.47
7.1.330.0060.00815.52
7.1.320.0100.00414.99
7.1.310.0120.00614.77
7.1.300.0090.00714.67
7.1.290.0080.00714.76
7.1.280.0120.00614.65
7.1.270.0130.00714.65
7.1.260.0120.00614.59
7.1.250.0080.00514.63
7.1.240.0130.00614.63
7.1.230.0210.00914.40
7.1.220.0210.00814.39
7.1.210.0180.00814.43
7.1.200.0200.00614.50
7.1.190.0200.00814.34
7.1.180.0200.00814.28
7.1.170.0410.00714.16
7.1.160.0580.00814.84
7.1.150.0480.00914.83
7.1.140.0440.00814.78
7.1.130.0620.00714.70
7.1.120.0560.00814.80
7.1.110.0610.00714.67
7.1.100.0550.00814.74
7.1.90.0540.00814.81
7.1.80.0580.00614.78
7.1.70.0590.01014.46
7.1.60.0820.00921.43
7.1.50.0670.00921.26
7.1.40.0610.01121.23
7.1.30.0610.00921.37
7.1.20.0660.00921.35
7.1.10.0510.01014.53
7.1.00.0620.00814.46
7.0.330.0180.00514.06
7.0.320.0110.00714.11
7.0.310.0240.00614.02
7.0.300.0450.00613.75
7.0.290.0510.00914.51
7.0.280.0200.00813.89
7.0.270.0600.00814.50
7.0.260.0640.00814.54
7.0.250.0690.00714.49
7.0.240.0620.00714.30
7.0.230.0610.00714.47
7.0.220.0640.00814.45
7.0.210.0550.00814.02
7.0.200.0590.00614.15
7.0.190.0680.00814.21
7.0.180.0600.00814.01
7.0.170.0620.00814.03
7.0.160.0610.00714.02
7.0.150.0600.01014.04
7.0.140.0660.00814.09
7.0.130.0500.00814.07
7.0.120.0520.00714.11
7.0.110.0590.00714.08
7.0.100.0620.00714.13
7.0.90.0460.00814.07
7.0.80.0520.00714.08
7.0.70.0510.00814.11
7.0.60.0660.00814.04
7.0.50.0580.01114.13
7.0.40.0570.00614.18
7.0.30.0760.00714.10
7.0.20.0690.00714.15
7.0.10.0520.00814.12
7.0.00.0710.00914.22
5.6.400.0100.00814.67
5.6.390.0090.00914.59
5.6.380.0090.00914.37
5.6.370.0130.00714.51
5.6.360.0100.01014.54
5.6.350.0090.01114.55
5.6.340.0130.00814.53
5.6.330.0130.00514.58
5.6.320.0140.00614.58
5.6.310.0110.00914.45
5.6.300.0150.01916.08
5.6.290.0140.02116.07
5.6.280.0130.02416.16
5.6.270.0120.02216.04
5.6.260.0110.02516.07
5.6.250.0140.02216.06
5.6.240.0130.02416.06
5.6.230.0130.02116.04
5.6.220.0120.02116.10
5.6.210.0150.02216.08
5.6.200.0110.02316.08
5.6.190.0130.02116.04
5.6.180.0120.02016.06
5.6.170.0130.02116.07
5.6.160.0130.02116.12
5.6.150.0130.02116.08
5.6.140.0160.02216.08
5.6.130.0140.02016.04
5.6.120.0130.02316.05
5.6.110.0150.02016.04
5.6.100.0120.02216.08
5.6.90.0130.02016.04
5.6.80.0130.02015.86
5.6.70.0140.02115.83
5.6.60.0110.02215.82
5.6.50.0110.02115.77
5.6.40.0130.02015.86
5.6.30.0140.02015.89
5.6.20.0110.02215.84
5.6.10.0110.02115.78
5.6.00.0100.02115.79
5.5.380.0120.01914.73
5.5.370.0090.02114.73
5.5.360.0120.02114.64
5.5.350.0130.01914.63
5.5.340.0120.01814.77
5.5.330.0120.01914.80
5.5.320.0120.01914.89
5.5.310.0110.02114.79
5.5.300.0130.01914.88
5.5.290.0120.02314.79
5.5.280.0110.02314.73
5.5.270.0130.02114.78
5.5.260.0120.01914.77
5.5.250.0110.02014.76
5.5.240.0130.01814.65
5.5.230.0120.01914.64
5.5.220.0100.02114.63
5.5.210.0110.02214.61
5.5.200.0120.02014.62
5.5.190.0110.02114.65
5.5.180.0130.02014.60
5.5.170.0120.00814.26
5.5.160.0110.01914.66
5.5.150.0110.02014.60
5.5.140.0120.01814.62
5.5.130.0130.01814.58
5.5.120.0100.01914.65
5.5.110.0120.01914.64
5.5.100.0110.02014.62
5.5.90.0110.01814.62
5.5.80.0110.01714.55
5.5.70.0120.01814.57
5.5.60.0110.02314.57
5.5.50.0110.02014.55
5.5.40.0090.01914.56
5.5.30.0110.01914.53
5.5.20.0120.01814.59
5.5.10.0110.02114.58
5.5.00.0110.01914.52
5.4.450.0120.01913.33
5.4.440.0100.01913.30
5.4.430.0100.02013.30
5.4.420.0110.01813.36
5.4.410.0100.01813.29
5.4.400.0100.01913.19
5.4.390.0120.01913.13
5.4.380.0110.01613.20
5.4.370.0120.01713.24
5.4.360.0100.02213.21
5.4.350.0130.01713.20
5.4.340.0100.01913.21
5.4.330.0060.00711.32
5.4.320.0100.01813.22
5.4.310.0110.01713.18
5.4.300.0080.01913.22
5.4.290.0090.01913.20
5.4.280.0090.01813.21
5.4.270.0100.01713.26
5.4.260.0090.01913.19
5.4.250.0090.01813.21
5.4.240.0110.01813.23
5.4.230.0100.02013.21
5.4.220.0120.01813.22
5.4.210.0090.01913.20
5.4.200.0090.01813.15
5.4.190.0090.01813.22
5.4.180.0090.01813.20
5.4.170.0090.02013.16
5.4.160.0120.01713.13
5.4.150.0110.01813.20
5.4.140.0100.01912.57
5.4.130.0100.01612.58
5.4.120.0110.01712.57
5.4.110.0110.01812.61
5.4.100.0110.01712.60
5.4.90.0100.01712.62
5.4.80.0100.01812.64
5.4.70.0110.01812.60
5.4.60.0090.01812.59
5.4.50.0100.01512.59
5.4.40.0070.02012.66
5.4.30.0090.02012.60
5.4.20.0110.01712.62
5.4.10.0110.01712.60
5.4.00.0090.01612.47
5.3.290.0100.01812.20
5.3.280.0100.01712.12
5.3.270.0080.02012.19
5.3.260.0100.01912.17
5.3.250.0090.01812.20
5.3.240.0100.01612.10
5.3.230.0100.01812.10
5.3.220.0090.01912.05
5.3.210.0090.01812.06
5.3.200.0110.01612.08
5.3.190.0100.01812.07
5.3.180.0100.01712.10
5.3.170.0100.01812.14
5.3.160.0080.01812.17
5.3.150.0120.01512.16
5.3.140.0100.01612.15
5.3.130.0120.01612.17
5.3.120.0100.01812.16
5.3.110.0100.01712.13
5.3.100.0100.01612.00
5.3.90.0090.01811.96
5.3.80.0090.01711.94
5.3.70.0080.01711.92
5.3.60.0100.01612.01
5.3.50.0090.01611.94
5.3.40.0090.01711.93
5.3.30.0100.01711.93
5.3.20.0090.01611.88
5.3.10.0090.01611.82
5.3.00.0090.01611.80

preferences:
13.91 ms | 455 KiB | 5 Q