3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Level 1:Level 2:Level 3:Level 4:Level 5'; echo $str . '<br />'; $levels = array(); $levels = explode( ':', $str ); echo "Level:" . $levels[1]; echo '<pre>' . print_r( $levels , TRUE ) . '</pre>'; ?>

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.4.20.0040.00418.88
8.4.10.0130.00317.76
8.3.150.0190.00017.13
8.3.140.0000.00819.10
8.3.130.0000.00918.40
8.3.120.0030.00619.09
8.3.110.0160.00320.94
8.3.100.0040.00416.66
8.3.90.0090.00916.51
8.3.80.0070.00319.36
8.3.70.0110.00816.50
8.3.60.0100.00718.11
8.3.50.0240.00921.03
8.3.40.0140.00719.39
8.3.30.0140.00818.87
8.3.20.0080.00722.09
8.3.10.0080.00821.95
8.3.00.0090.00720.54
8.2.270.0080.01116.61
8.2.260.0110.00716.57
8.2.250.0030.01616.50
8.2.240.0090.00016.91
8.2.230.0030.00622.58
8.2.220.0190.00024.06
8.2.210.0070.00026.77
8.2.200.0110.00018.88
8.2.190.0110.00416.58
8.2.180.0040.01218.54
8.2.170.0120.00920.22
8.2.160.0090.00820.15
8.2.150.0110.00621.37
8.2.140.0120.00421.81
8.2.130.0070.00722.35
8.2.120.0100.00219.89
8.2.110.0090.00519.83
8.2.100.0110.00418.83
8.2.90.0080.00418.59
8.2.80.0070.00619.23
8.2.70.0050.00818.49
8.2.60.0080.00518.48
8.2.50.0100.00318.67
8.2.40.0080.00519.08
8.2.30.0080.00618.98
8.2.20.0100.00418.54
8.2.10.0080.00418.90
8.2.00.0090.00618.99
8.1.310.0120.00616.17
8.1.300.0040.00418.24
8.1.290.0100.00030.84
8.1.280.0140.00725.92
8.1.270.0070.00523.01
8.1.260.0060.00723.50
8.1.250.0080.00724.10
8.1.240.0110.00418.88
8.1.230.0060.00919.40
8.1.220.0110.00318.53
8.1.210.0110.00318.59
8.1.200.0100.00518.20
8.1.190.0150.00218.15
8.1.180.0100.01018.30
8.1.170.0040.01318.27
8.1.160.0120.00418.63
8.1.150.0130.00318.81
8.1.140.0090.00719.45
8.1.130.0100.00619.27
8.1.120.0070.00818.22
8.1.110.0080.00618.15
8.1.100.0070.00619.04
8.1.90.0050.00718.16
8.1.80.0040.00818.96
8.1.70.0050.00718.40
8.1.60.0030.00918.31
8.1.50.0050.00718.26
8.1.40.0060.00618.34
8.1.30.0080.00418.53
8.1.20.0070.00619.19
8.1.10.0080.00618.32
8.1.00.0080.00418.20
8.0.300.0090.00618.19
8.0.290.0190.00317.33
8.0.280.0170.00518.00
8.0.270.0100.00717.60
8.0.260.0180.00318.04
8.0.250.0160.00417.59
8.0.240.0180.00717.54
8.0.230.0140.00517.57
8.0.220.0200.00317.52
8.0.210.0170.00717.45
8.0.200.0230.00417.49
8.0.190.0200.00617.51
8.0.180.0090.01017.58
8.0.170.0180.00717.47
8.0.160.0140.00717.57
8.0.150.0160.00717.49
8.0.140.0170.00617.42
8.0.130.0120.00916.33
8.0.120.0210.00317.30
8.0.110.0160.00917.49
8.0.100.0120.00717.49
8.0.90.0130.00917.45
8.0.80.0150.01017.23
8.0.70.0090.00817.40
8.0.60.0140.01117.36
8.0.50.0190.00417.37
8.0.30.0120.00517.42
8.0.20.0130.00817.50
8.0.10.0150.00717.60
8.0.00.0160.00517.89
7.4.330.0120.00417.17
7.4.320.0180.01117.02
7.4.300.0240.00817.10
7.4.290.0170.00817.16
7.4.280.0200.00617.03
7.4.270.0220.00217.10
7.4.260.0230.00515.99
7.4.250.0200.00617.16
7.4.240.0190.00416.88
7.4.230.0250.00517.04
7.4.220.0130.00716.87
7.4.210.0170.00616.94
7.4.200.0200.00417.02
7.4.190.0270.01017.51
7.4.180.0300.00117.69
7.4.160.0280.00917.42
7.4.150.0270.00517.44
7.4.140.0240.00817.28
7.4.130.0180.00916.93
7.4.120.0220.00717.03
7.4.110.0180.01116.94
7.4.100.0210.00817.05
7.4.90.0160.01017.06
7.4.80.0170.01118.01
7.4.70.0180.00816.93
7.4.60.0160.01016.88
7.4.50.0170.00916.93
7.4.40.0160.01117.04
7.4.30.0250.00517.60
7.4.20.0240.00817.27
7.4.10.0220.01317.22
7.4.00.0200.00716.40
7.3.330.0180.00516.86
7.3.320.0170.00515.90
7.3.310.0160.00616.93
7.3.300.0190.00717.21
7.3.290.0160.00716.76
7.3.280.0190.00716.90
7.3.270.0240.00817.08
7.3.260.0160.00816.60
7.3.250.0250.01217.24
7.3.240.0170.00516.71
7.3.230.0230.00916.90
7.3.220.0250.00717.24
7.3.210.0160.01016.83
7.3.200.0200.00516.88
7.3.190.0200.00716.78
7.3.180.0200.00916.98
7.3.170.0220.00617.48
7.3.160.0200.00916.92
7.3.150.0270.00617.08
7.3.140.0250.01017.07
7.3.130.0320.00717.13
7.3.120.0300.00817.23
7.3.110.0220.00417.62
7.3.100.0240.00816.91
7.3.90.0290.00517.33
7.3.80.0180.00715.94
7.3.70.0160.00616.50
7.3.60.0180.00515.98
7.3.50.0180.00815.96
7.3.40.0180.00616.02
7.3.30.0190.00816.15
7.3.20.0280.00516.93
7.3.10.0190.00717.03
7.3.00.0190.00916.81
7.2.340.0230.00817.48
7.2.330.0220.00617.02
7.2.320.0240.00517.04
7.2.310.0200.00817.09
7.2.300.0190.00916.98
7.2.290.0190.00517.26
7.2.280.0260.01217.15
7.2.270.0310.00717.37
7.2.260.0280.00917.16
7.2.250.0290.00617.12
7.2.240.0220.00917.44
7.2.230.0270.00717.25
7.2.220.0250.00617.39
7.2.210.0180.00816.07
7.2.200.0180.00616.44
7.2.190.0190.00716.10
7.2.180.0170.00816.07
7.2.170.0170.00716.23
7.2.160.0160.00816.33
7.2.150.0390.00817.06
7.2.140.0170.00917.20
7.2.130.0230.00217.21
7.2.120.0180.00817.11
7.2.110.0210.00817.28
7.2.100.0150.00717.13
7.2.90.0210.00617.16
7.2.80.0200.00617.15
7.2.70.0160.00817.03
7.2.60.0170.00817.06
7.2.50.0200.00517.22
7.2.40.0160.00917.16
7.2.30.0390.00717.31
7.2.20.0210.00917.08
7.2.10.0220.00417.24
7.2.00.0110.00817.28
7.1.330.0240.00518.29
7.1.320.0270.00618.33
7.1.310.0190.00916.11
7.1.300.0170.00616.09
7.1.290.0210.00616.10
7.1.280.0180.00816.13
7.1.270.0190.00816.60
7.1.260.0180.00916.04
7.1.250.0190.00516.08
7.1.240.0290.00718.02
7.1.230.0210.01018.11
7.1.220.0260.00918.20
7.1.210.0240.00718.21
7.1.200.0230.00418.21
7.1.190.0260.00618.14
7.1.180.0250.00318.14
7.1.170.0200.00818.09
7.1.160.0230.00419.46
7.1.150.0280.00518.08
7.1.140.0240.00918.10
7.1.130.0260.00617.95
7.1.120.0230.01118.14
7.1.110.0190.01118.29
7.1.100.0240.00918.04
7.1.90.0260.00917.99
7.1.80.0240.00918.15
7.1.70.0290.00517.96
7.1.60.0200.01218.33
7.1.50.0190.00718.83
7.1.40.0190.01218.35
7.1.30.0230.00518.24
7.1.20.0220.01018.04
7.1.10.0260.00518.23
7.1.00.0050.01218.32

preferences:
34.63 ms | 403 KiB | 5 Q