3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startMemory = memory_get_usage(); $array = range(1, 100000); echo memory_get_usage() - $startMemory, " bytes\n";

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.00.0140.00622.60
8.2.130.0100.01022.99
8.2.120.0070.01122.85
8.2.110.0100.01022.42
8.2.100.0030.01722.84
8.2.90.0060.01322.66
8.2.80.0110.00722.54
8.2.70.0140.00320.85
8.2.60.0140.00419.92
8.2.50.0150.00319.31
8.2.40.0120.00219.50
8.2.30.0090.00619.28
8.2.20.0150.00519.14
8.2.10.0090.00619.27
8.2.00.0120.00419.26
8.1.260.0120.00924.93
8.1.250.0130.01025.00
8.1.240.0130.01021.56
8.1.230.0140.00421.53
8.1.220.0130.00321.53
8.1.210.0090.00024.28
8.1.200.0080.00722.08
8.1.190.0120.00221.45
8.1.180.0100.00321.45
8.1.170.0110.00220.45
8.1.160.0110.00620.61
8.1.150.0090.00620.57
8.1.140.0130.00220.50
8.1.130.0060.00820.65
8.1.120.0090.00520.56
8.1.110.0080.00620.92
8.1.100.0080.00621.60
8.1.90.0100.00420.67
8.1.80.0050.00820.64
8.1.70.0070.00521.49
8.1.60.0080.00520.81
8.1.50.0120.00620.66
8.1.40.0130.00320.62
8.1.30.0110.00620.65
8.1.20.0110.00520.60
8.1.10.0130.00320.52
8.1.00.0160.00320.53
8.0.300.0060.00320.70
8.0.290.0160.00520.00
8.0.280.0140.00619.98
8.0.270.0100.00319.99
8.0.260.0130.00119.86
8.0.250.0040.00820.54
8.0.240.0100.00419.93
8.0.230.0130.00219.81
8.0.220.0070.00619.86
8.0.210.0080.00520.42
8.0.200.0140.00120.42
8.0.190.0070.00620.46
8.0.180.0110.00319.79
8.0.170.0130.00119.81
8.0.160.0070.00519.71
8.0.150.0100.00519.69
8.0.140.0060.00919.62
8.0.130.0100.00520.06
8.0.120.0130.00319.75
8.0.110.0110.00419.95
8.0.100.0100.00420.08
8.0.90.0140.00319.72
8.0.80.0100.00520.02
8.0.70.0120.00419.72
8.0.60.0120.00519.68
8.0.50.0090.00719.64
8.0.30.0080.00819.70
8.0.20.0080.00819.74
8.0.10.0110.00519.85
8.0.00.0070.00620.22
7.4.330.0120.00216.33
7.4.320.0140.00419.47
7.4.300.0140.00319.46
7.4.290.0160.00519.30
7.4.280.0160.00419.43
7.4.270.0150.00419.35
7.4.260.0160.00219.36
7.4.250.0120.00519.39
7.4.240.0140.00319.33
7.4.230.0130.00419.30
7.4.220.0110.00519.36
7.4.210.0130.00419.27
7.4.200.0100.00719.39
7.4.190.0110.00419.34
7.4.180.0150.00519.37
7.4.160.0180.00319.38
7.4.150.0150.00419.35
7.4.140.0100.00819.30
7.4.130.0130.00519.12
7.4.120.0140.00319.21
7.4.110.0110.00519.20
7.4.100.0130.00519.26
7.4.90.0130.00519.17
7.4.80.0140.00519.21
7.4.70.0130.00419.21
7.4.60.0150.00119.25
7.4.50.0100.00719.11
7.4.40.0160.00319.15
7.4.30.0160.00519.20
7.4.20.0140.00319.15
7.4.10.0120.00419.26
7.4.00.0120.00418.99
7.3.330.0100.00719.04
7.3.320.0160.00219.13
7.3.310.0140.00419.13
7.3.300.0130.00519.12
7.3.290.0150.00319.09
7.3.280.0160.00518.92
7.3.270.0150.00319.14
7.3.260.0140.00419.00
7.3.250.0110.00819.10
7.3.240.0180.00319.09
7.3.230.0150.00319.02
7.3.220.0140.00618.98
7.3.210.0140.00818.93
7.3.200.0170.00519.00
7.3.190.0150.00618.81
7.3.180.0170.00518.95
7.3.170.0130.00519.06
7.3.160.0160.00318.97
7.3.150.0150.00418.97
7.3.140.0150.00419.01
7.3.130.0130.00519.00
7.3.120.0080.01018.50
7.3.110.0140.00418.46
7.3.100.0120.00518.43
7.3.90.0110.00718.71
7.3.80.0120.00518.57
7.3.70.0100.00718.50
7.3.60.0120.00618.30
7.3.50.0120.00618.40
7.3.40.0130.00418.36
7.3.30.0100.00818.21
7.3.20.0450.00520.04
7.3.10.0290.00820.04
7.3.00.0350.00820.06
7.2.340.0130.00419.22
7.2.330.0190.00219.17
7.2.320.0190.00319.21
7.2.310.0180.00419.19
7.2.300.0160.00619.25
7.2.290.0160.00319.15
7.2.280.0210.00219.32
7.2.270.0150.00719.27
7.2.260.0170.00419.23
7.2.250.0130.00618.87
7.2.240.0120.00718.71
7.2.230.0140.00418.78
7.2.220.0130.00518.77
7.2.210.0130.00518.88
7.2.200.0120.00718.60
7.2.190.0110.00618.46
7.2.180.0110.00618.48
7.2.170.0100.00818.54
7.2.160.0120.00618.52
7.2.150.0410.00720.16
7.2.140.0440.00720.21
7.2.130.0390.00520.27
7.2.120.0410.00520.27
7.2.110.0380.00420.33
7.2.100.0420.00720.24
7.2.90.0410.00520.23
7.2.80.0460.00620.15
7.2.70.0360.00620.24
7.2.60.0550.00620.17
7.2.50.0430.00720.29
7.2.40.0430.00820.31
7.2.30.0460.00720.34
7.2.20.0430.00620.27
7.2.10.0410.00720.32
7.2.00.0480.00620.38
7.1.330.0110.00720.36
7.1.320.0180.00620.26
7.1.310.0160.00220.42
7.1.300.0160.00419.51
7.1.290.0230.00619.56
7.1.280.0160.00719.56
7.1.270.0330.00519.17
7.1.260.0320.00619.18
7.1.250.0370.00619.09
7.1.240.0450.00519.04
7.1.230.0450.00619.11
7.1.220.0410.00719.12
7.1.210.0460.00418.95
7.1.200.0500.00519.02
7.1.190.0450.00619.07
7.1.180.0500.00618.98
7.1.170.0450.00519.10
7.1.160.0570.00718.97
7.1.150.0640.00519.09
7.1.140.0390.00919.02
7.1.130.0550.00519.05
7.1.120.0520.00819.13
7.1.110.0420.00919.05
7.1.100.0620.00619.00
7.1.90.0530.00519.04
7.1.80.0390.00819.07
7.1.70.0490.00819.10
7.1.60.0440.00621.03
7.1.50.0360.00920.98
7.1.40.0350.00720.80
7.1.30.0400.00520.83
7.1.20.0380.00720.83
7.1.10.0480.00619.03
7.1.00.0340.00819.03
7.0.330.0540.00818.71
7.0.320.0520.00618.78
7.0.310.0430.00618.79
7.0.300.0480.00718.83
7.0.290.0520.00618.76
7.0.280.0540.00418.76
7.0.270.0490.00618.74
7.0.260.0580.00718.87
7.0.250.0470.00718.95
7.0.240.0470.00518.88
7.0.230.0370.00918.91
7.0.220.0450.00618.83
7.0.210.0370.00618.76
7.0.200.0540.00518.86
7.0.190.0430.00718.94
7.0.180.0340.00718.78
7.0.170.0350.00618.85
7.0.160.0340.00618.76
7.0.150.0340.00518.79
7.0.140.0330.00518.84
7.0.130.0320.00618.94
7.0.120.0290.00718.94
7.0.110.0330.00618.74
7.0.100.0410.00518.82
7.0.90.0340.00518.86
7.0.80.0440.00818.81
7.0.70.0320.00718.78
7.0.60.0340.00618.79
7.0.50.0350.00618.84
7.0.40.0340.00618.67
7.0.30.0310.00618.69
7.0.20.0320.00418.70
7.0.10.0380.00418.64
7.0.00.0420.00718.65
5.6.400.0210.01829.26
5.6.390.0210.01829.14
5.6.380.0200.01629.33
5.6.370.0210.01529.31
5.6.360.0210.01529.38
5.6.350.0210.01829.28
5.6.340.0270.01429.36
5.6.330.0210.01729.32
5.6.320.0220.01629.23
5.6.310.0200.01429.34
5.6.300.0240.02230.46
5.6.290.0180.02730.42
5.6.280.0180.02630.47
5.6.270.0200.02530.51
5.6.260.0180.02630.46
5.6.250.0170.02730.46
5.6.240.0210.02530.46
5.6.230.0210.02530.49
5.6.220.0190.02730.41
5.6.210.0200.02330.46
5.6.200.0200.02430.45
5.6.190.0190.02630.50
5.6.180.0170.02930.39
5.6.170.0140.02730.44
5.6.160.0190.02330.43
5.6.150.0190.02530.48
5.6.140.0190.02730.50
5.6.130.0210.02630.44
5.6.120.0150.02730.54
5.6.110.0180.02630.41
5.6.100.0200.02530.41
5.6.90.0170.02430.34
5.6.80.0170.02630.24
5.6.70.0160.02630.28
5.6.60.0150.03030.31
5.6.50.0180.02530.25
5.6.40.0210.02330.21
5.6.30.0160.02730.25
5.6.20.0210.02530.27
5.6.10.0180.02530.24
5.6.00.0150.02630.26
5.5.380.0200.02629.78
5.5.370.0210.02529.74
5.5.360.0200.02529.69
5.5.350.0200.02729.63
5.5.340.0200.02729.69
5.5.330.0200.02529.72
5.5.320.0240.02229.67
5.5.310.0180.02829.77
5.5.300.0180.02829.79
5.5.290.0200.02329.75
5.5.280.0190.02729.72
5.5.270.0240.02329.74
5.5.260.0200.02629.71
5.5.250.0200.02629.66
5.5.240.0210.02429.67
5.5.230.0200.02529.58
5.5.220.0180.02829.64
5.5.210.0230.02529.67
5.5.200.0200.02529.55
5.5.190.0210.02429.55
5.5.180.0150.03129.51
5.5.170.0190.01929.11
5.5.160.0210.02629.51
5.5.150.0190.02529.63
5.5.140.0190.02429.49
5.5.130.0170.02629.46
5.5.120.0190.02629.50
5.5.110.0210.02229.50
5.5.100.0190.02529.59
5.5.90.0180.02529.61
5.5.80.0220.02029.50
5.5.70.0250.01929.54
5.5.60.0160.02829.48
5.5.50.0170.02629.58
5.5.40.0180.02429.63
5.5.30.0190.02529.65
5.5.20.0190.02529.55
5.5.10.0170.02629.58
5.5.00.0170.02729.54
5.4.450.0200.02227.23
5.4.440.0140.02627.28
5.4.430.0140.02527.20
5.4.420.0160.02427.27
5.4.410.0190.02027.26
5.4.400.0140.02427.11
5.4.390.0160.02127.15
5.4.380.0190.02027.18
5.4.370.0190.02127.15
5.4.360.0190.02327.21
5.4.350.0140.02727.20
5.4.340.0210.02427.13
5.4.330.0190.01325.68
5.4.320.0190.02627.17
5.4.310.0160.02627.28
5.4.300.0190.02227.22
5.4.290.0150.02527.15
5.4.280.0180.02227.23
5.4.270.0150.02227.14
5.4.260.0150.02427.14
5.4.250.0150.02627.17
5.4.240.0140.02627.18
5.4.230.0150.02427.10
5.4.220.0170.02327.01
5.4.210.0150.02427.11
5.4.200.0160.02427.06
5.4.190.0150.02427.06
5.4.180.0150.02427.07
5.4.170.0160.02427.12
5.4.160.0150.02427.15
5.4.150.0160.02427.06
5.4.140.0200.01926.65
5.4.130.0180.02026.63
5.4.120.0140.02526.68
5.4.110.0160.02226.66
5.4.100.0150.02226.73
5.4.90.0150.02726.63
5.4.80.0170.02326.77
5.4.70.0180.02526.77
5.4.60.0160.02026.68
5.4.50.0180.02326.66
5.4.40.0150.02326.73
5.4.30.0170.02126.69
5.4.20.0160.02226.74
5.4.10.0160.02626.77
5.4.00.0160.02226.52

preferences:
28.56 ms | 403 KiB | 5 Q