3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("Initial: %fMB\n", memory_get_peak_usage() / 1048576); $string = ''; do { $string .= 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.'; } while (strlen($string) < 10485760); printf("Loaded string: %fMB\n", memory_get_peak_usage() / 1048576); $array = explode("Lorem", $string); printf("Exploded string: %fMB\n", memory_get_peak_usage() / 1048576);

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.0210.02442.20
8.3.50.0620.01440.84
8.3.40.0480.01343.18
8.3.30.0470.02044.82
8.3.20.0270.00343.52
8.3.10.0070.01345.14
8.3.00.0100.01346.60
8.2.180.0560.02040.96
8.2.170.0500.01243.52
8.2.160.0480.01044.79
8.2.150.0230.00643.37
8.2.140.0670.00745.01
8.2.130.0190.01045.32
8.2.120.0190.00445.13
8.2.110.0300.00745.35
8.2.100.0460.00742.25
8.2.90.0140.01743.87
8.2.80.0310.00042.14
8.2.70.0230.00742.10
8.2.60.0220.00642.33
8.2.50.0240.00342.12
8.2.40.0200.01042.63
8.2.30.0170.00743.85
8.2.20.0070.01742.20
8.2.10.0170.00742.17
8.2.00.0200.00742.09
8.1.280.0630.02143.15
8.1.270.0230.01045.98
8.1.260.0290.00743.95
8.1.250.0270.00346.18
8.1.240.0220.01344.49
8.1.230.0400.01341.66
8.1.220.0160.00941.57
8.1.210.0140.01441.11
8.1.200.0230.01041.02
8.1.190.0170.01041.01
8.1.180.0190.00841.01
8.1.170.0220.00942.32
8.1.160.0200.00342.55
8.1.150.0200.01042.16
8.1.140.0200.00341.10
8.1.130.0240.00041.41
8.1.120.0200.00341.02
8.1.110.0100.01441.11
8.1.100.0070.01440.98
8.1.90.0100.01340.97
8.1.80.0170.00741.13
8.1.70.0140.01141.12
8.1.60.0170.01041.29
8.1.50.0160.00741.15
8.1.40.0100.01741.11
8.1.30.0160.00741.25
8.1.20.0100.01441.26
8.1.10.0200.00343.26
8.1.00.0100.01743.14
8.0.300.0240.01043.41
8.0.290.0180.01142.32
8.0.280.0200.00344.16
8.0.270.0170.01042.96
8.0.260.0160.01342.39
8.0.250.0110.01542.61
8.0.240.0160.01542.63
8.0.230.0130.01342.60
8.0.220.0220.00342.48
8.0.210.0200.00742.61
8.0.200.0160.00842.53
8.0.190.0100.01642.50
8.0.180.0180.01142.57
8.0.170.0120.01242.48
8.0.160.0130.01342.42
8.0.150.0140.01142.39
8.0.140.0280.00042.37
8.0.130.0180.00639.02
8.0.120.0230.00342.42
8.0.110.0140.01142.40
8.0.100.0160.00842.47
8.0.90.0130.01042.46
8.0.80.0360.02342.39
8.0.70.0150.00942.36
8.0.60.0100.01442.29
8.0.50.0090.01642.45
8.0.30.0430.04742.50
8.0.20.0460.04542.59
8.0.10.0170.00742.42
8.0.00.0480.05142.17
7.4.330.0090.00941.02
7.4.320.0200.00742.00
7.4.300.0170.01042.13
7.4.290.0200.00742.05
7.4.280.0170.01042.10
7.4.270.0170.01042.12
7.4.260.0310.00338.97
7.4.250.0170.01042.00
7.4.240.0170.00742.11
7.4.230.0170.00742.09
7.4.220.0730.02342.04
7.4.210.0380.02642.06
7.4.200.0140.01142.06
7.4.190.0100.01442.28
7.4.160.0650.04542.28
7.4.150.0590.03842.05
7.4.140.0440.04542.15
7.4.130.0320.05742.03
7.4.120.0540.04042.02
7.4.110.0570.03041.95
7.4.100.0420.04542.00
7.4.90.0450.04842.15
7.4.80.0480.04242.11
7.4.70.0570.03442.16
7.4.60.0390.04842.09
7.4.50.0130.01641.91
7.4.40.0380.01041.76
7.4.30.0440.04442.17
7.4.10.0430.02040.60
7.4.00.0280.02640.51
7.3.330.0170.01038.79
7.3.320.0170.00738.96
7.3.310.0200.01041.89
7.3.300.0130.01341.93
7.3.290.0530.01341.95
7.3.280.0350.02841.84
7.3.270.0490.03942.04
7.3.260.0510.04841.97
7.3.250.0510.04641.90
7.3.240.0440.04441.86
7.3.230.0400.07042.05
7.3.210.0450.05342.08
7.3.200.0450.05241.95
7.3.190.0500.05041.90
7.3.180.0410.05142.16
7.3.170.0550.05941.90
7.3.160.0460.04641.97
7.3.130.0390.02640.47
7.3.120.0340.02240.42
7.3.110.0380.02340.37
7.3.100.0250.02640.52
7.3.90.0340.02040.43
7.3.80.0220.02640.49
7.3.70.0150.02740.37
7.3.60.0200.02340.43
7.3.50.0220.02340.42
7.3.40.0260.02440.31
7.3.30.0200.02040.42
7.3.20.0160.02044.33
7.3.10.0290.01644.32
7.3.00.0250.01744.35
7.2.330.0450.05142.29
7.2.320.0570.03842.08
7.2.310.0410.05242.22
7.2.300.0480.04242.40
7.2.290.0440.04142.25
7.2.260.0280.02840.88
7.2.250.0340.02440.80
7.2.240.0280.02440.66
7.2.230.0330.01640.56
7.2.220.0320.02540.54
7.2.210.0300.01540.86
7.2.200.0230.01840.67
7.2.190.0250.02340.48
7.2.180.0290.02040.21
7.2.170.0240.02340.56
7.2.160.0200.03040.24
7.2.150.0210.01444.70
7.2.140.0250.00644.60
7.2.130.0350.01744.35
7.2.120.0380.01544.56
7.2.110.0340.01744.66
7.2.100.0410.01344.50
7.2.90.0420.01144.57
7.2.80.0380.01644.45
7.2.70.0340.02544.50
7.2.60.0410.01744.49
7.2.50.0480.01644.54
7.2.40.0360.01344.67
7.2.30.0460.01444.50
7.2.20.0420.01844.60
7.2.10.0450.01744.31
7.2.00.0540.01544.54
7.1.330.0140.02143.51
7.1.320.0200.02343.60
7.1.310.0170.01943.56
7.1.300.0190.02943.63
7.1.290.0160.02343.65
7.1.280.0130.02243.75
7.1.270.0190.02043.61
7.1.260.0150.02143.51
7.1.250.0360.02043.59
7.1.240.0370.01343.41
7.1.230.0220.02643.49
7.1.220.0270.01243.41
7.1.210.0280.01443.67
7.1.200.0250.01943.44
7.1.190.0270.02443.51
7.1.180.0360.01543.51
7.1.170.0270.02343.55
7.1.160.0340.02343.58
7.1.150.0370.01643.58
7.1.140.0240.02443.28
7.1.130.0280.02443.47
7.1.120.0340.01643.32
7.1.110.0280.01843.47
7.1.100.2800.01843.13
7.1.90.0270.02543.40
7.1.80.0270.01743.39
7.1.70.0130.01643.67
7.1.60.0190.02243.95
7.1.50.0290.01243.84
7.1.40.0240.01743.77
7.1.30.0210.01943.76
7.1.20.0230.02243.80
7.1.10.0220.02243.68
7.1.00.0250.01143.59
7.0.330.0270.03043.15
7.0.320.0240.03343.08
7.0.310.0360.02943.28
7.0.300.0410.03343.20
7.0.290.0370.03243.22
7.0.280.0340.03343.09
7.0.270.0410.02643.08
7.0.260.0230.03343.14
7.0.250.0410.03743.25
7.0.240.0330.03443.20
7.0.230.0240.03443.03
7.0.220.0270.03742.95
7.0.210.0300.03243.03
7.0.200.0180.03643.67
7.0.190.0180.03143.69
7.0.180.0240.02643.45
7.0.170.0210.03943.56
7.0.160.0240.02843.43
7.0.150.0300.03443.50
7.0.140.0320.03143.38
7.0.130.0270.03143.55
7.0.120.0180.03043.56
7.0.110.0290.03143.45
7.0.100.0270.03043.53
7.0.90.0290.03143.59
7.0.80.0230.03143.59
7.0.70.0300.03343.49
7.0.60.0290.03343.51
7.0.50.0310.02843.44
7.0.40.0220.03529.56
7.0.30.0240.03229.58
7.0.20.0220.03329.53
7.0.10.0200.03529.57
7.0.00.0170.03229.59
5.6.400.0300.03445.75
5.6.390.0270.03445.89
5.6.380.0300.03346.29
5.6.370.0150.04845.67
5.6.360.0190.04645.95
5.6.350.0170.05246.05
5.6.340.0310.02845.92
5.6.330.0290.03645.81
5.6.320.0200.04046.18
5.6.310.0200.03946.10
5.6.300.0280.03748.21
5.6.290.0280.05148.10
5.6.280.0230.05048.25
5.6.270.0210.04648.32
5.6.260.0210.05648.30
5.6.250.0160.05248.35
5.6.240.0210.06348.29
5.6.230.0160.05248.28
5.6.220.0270.04248.25
5.6.210.0180.05048.23
5.6.200.0270.05148.26
5.6.190.0180.05048.33
5.6.180.0190.05048.37
5.6.170.0310.04548.36
5.6.160.0270.03448.35
5.6.150.0240.05148.33
5.6.140.0190.05048.33
5.6.130.0180.04748.46
5.6.120.0200.04648.17
5.6.110.0200.04748.20
5.6.100.0160.05148.22
5.6.90.0270.04648.20
5.6.80.0230.04648.18
5.6.70.0210.04448.19
5.6.60.0110.05647.94
5.6.50.0330.04647.96
5.6.40.0240.04248.01
5.6.30.0260.03747.86
5.6.20.0160.05347.96
5.6.10.0200.05148.01
5.6.00.0200.04647.99
5.5.380.0220.04445.90
5.5.370.0190.04846.07
5.5.360.0180.05245.99
5.5.350.0300.03845.94
5.5.340.0180.05146.01
5.5.330.0240.04246.04
5.5.320.0170.04646.16
5.5.310.0210.04046.18
5.5.300.0110.05346.15
5.5.290.0160.05346.10
5.5.280.0170.05145.91
5.5.270.0150.05146.18
5.5.260.0170.04446.16
5.5.250.0190.04346.09
5.5.240.0140.04645.95
5.5.230.0180.04445.90
5.5.220.0240.03745.82
5.5.210.0180.04346.00
5.5.200.0220.04345.77
5.5.190.0180.04745.73
5.5.180.0320.04245.80
5.5.170.0190.04244.32
5.5.160.0220.04445.98
5.5.150.0180.04445.79
5.5.140.0170.04645.82
5.5.130.0230.04045.88
5.5.120.0160.05045.74
5.5.110.0200.04546.04
5.5.100.0180.04245.91
5.5.90.0160.04845.87
5.5.80.0190.04645.99
5.5.70.0200.04145.87
5.5.60.0310.04245.84
5.5.50.0140.06445.72
5.5.40.0180.04445.79
5.5.30.0180.04445.88
5.5.20.0230.04545.88
5.5.10.0200.04145.89
5.5.00.0260.04545.88
5.4.450.0160.05345.47
5.4.440.0210.04145.34
5.4.430.0210.04545.44
5.4.420.0150.04745.61
5.4.410.0170.04245.40
5.4.400.0200.04245.35
5.4.390.0220.04345.37
5.4.380.0180.04145.29
5.4.370.0240.04845.29
5.4.360.0190.04345.25
5.4.350.0180.04545.26
5.4.340.0160.05145.34
5.4.330.0170.04342.55
5.4.320.0120.05145.31
5.4.310.0200.04545.30
5.4.300.0210.04145.42
5.4.290.0280.04345.36
5.4.280.0180.04445.29
5.4.270.0200.04945.35
5.4.260.0170.04545.28
5.4.250.0290.03445.28
5.4.240.0270.03445.29
5.4.230.0230.05245.35
5.4.220.0240.04045.42
5.4.210.0140.05645.25
5.4.200.0220.04445.32
5.4.190.0120.05545.31
5.4.180.0310.04645.30
5.4.170.0120.04745.45
5.4.160.0150.05045.20
5.4.150.0210.04245.20
5.4.140.0180.04244.45
5.4.130.0130.05144.45
5.4.120.0210.04744.38
5.4.110.0200.04744.54
5.4.100.0230.05344.47
5.4.90.0140.04944.50
5.4.80.0170.04844.48
5.4.70.0220.06144.56
5.4.60.0150.04644.55
5.4.50.0180.04244.54
5.4.40.0180.04344.45
5.4.30.0200.04844.48
5.4.20.0230.03944.49
5.4.10.0190.04244.56
5.4.00.0210.05644.35
5.3.290.0160.04243.20
5.3.280.0140.04543.04
5.3.270.0200.04543.09
5.3.260.0190.04143.17
5.3.250.0190.05343.08
5.3.240.0160.06743.04
5.3.230.0210.04443.10
5.3.220.0220.04643.05
5.3.210.0220.03742.96
5.3.200.0200.04643.02
5.3.190.0220.04443.08
5.3.180.0190.04243.15
5.3.170.0240.04643.11
5.3.160.0260.04043.15
5.3.150.0160.04243.19
5.3.140.0200.04642.98
5.3.130.0170.04343.08
5.3.120.0180.04743.06
5.3.110.0120.05043.00
5.3.100.0160.06142.79
5.3.90.0190.04542.92
5.3.80.0150.04542.72
5.3.70.0200.04042.68
5.3.60.0110.05742.77
5.3.50.0170.04242.71
5.3.40.0220.05842.77
5.3.30.0210.04142.80
5.3.20.0170.04242.66
5.3.10.0200.04642.48
5.3.00.0130.05142.45

preferences:
41.79 ms | 401 KiB | 5 Q