3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'first_group, second_group, third_group'; $results = explode(', ', $mystring); foreach($results as $row){ $expected[] = ['key'=>$row]; } print_r($expected); ?>

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.0150.00618.43
8.3.50.0070.00718.26
8.3.40.0070.01118.67
8.3.30.0120.00318.63
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0070.00026.16
8.2.180.0110.00425.92
8.2.170.0200.00019.04
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00320.91
8.2.110.0060.00322.15
8.2.100.0080.00417.84
8.2.90.0040.00418.03
8.2.80.0040.00719.89
8.2.70.0000.00917.63
8.2.60.0060.00317.63
8.2.50.0030.00518.07
8.2.40.0050.00318.16
8.2.30.0050.00218.13
8.2.20.0050.00218.18
8.2.10.0000.00719.36
8.2.00.0000.00819.29
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.01023.84
8.1.230.0070.00422.20
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0090.00018.54
8.1.160.0040.00418.94
8.1.150.0040.00418.67
8.1.140.0070.00018.79
8.1.130.0030.00320.00
8.1.120.0000.00717.45
8.1.110.0040.00417.33
8.1.100.0000.00717.48
8.1.90.0050.00217.45
8.1.80.0080.00017.49
8.1.70.0040.00417.31
8.1.60.0030.00517.57
8.1.50.0050.00217.40
8.1.40.0080.00017.39
8.1.30.0040.00417.52
8.1.20.0000.00717.53
8.1.10.0020.00517.43
8.1.00.0050.00217.44
8.0.300.0070.00020.03
8.0.290.0080.00016.75
8.0.280.0040.00418.34
8.0.270.0070.00018.00
8.0.260.0060.00018.40
8.0.250.0070.00016.91
8.0.240.0000.01017.01
8.0.230.0020.00516.90
8.0.220.0000.00716.77
8.0.210.0000.00716.88
8.0.200.0030.00616.83
8.0.190.0000.00716.93
8.0.180.0070.00016.96
8.0.170.0040.00416.91
8.0.160.0070.00016.89
8.0.150.0090.00016.89
8.0.140.0040.00416.81
8.0.130.0030.00313.29
8.0.120.0050.00316.90
8.0.110.0050.00516.66
8.0.100.0040.00416.77
8.0.90.0040.00416.85
8.0.80.0130.00416.87
8.0.70.0000.00816.82
8.0.60.0070.00016.68
8.0.50.0080.00016.77
8.0.30.0070.01017.14
8.0.20.0120.00917.23
8.0.10.0030.00516.98
8.0.00.0060.01316.64
7.4.330.0000.00415.55
7.4.320.0030.00316.49
7.4.300.0030.00316.35
7.4.290.0080.00016.60
7.4.280.0040.00416.48
7.4.270.0030.00516.60
7.4.260.0050.00013.29
7.4.250.0050.00316.45
7.4.240.0000.00816.55
7.4.230.0000.00716.58
7.4.220.0040.00316.46
7.4.210.0100.00616.59
7.4.200.0040.00416.34
7.4.130.0120.01116.56
7.4.120.0060.01016.58
7.4.110.0140.00416.32
7.4.100.0060.01016.52
7.4.90.0100.00616.70
7.4.80.0120.00619.39
7.4.70.0160.00816.45
7.4.60.0120.01216.16
7.4.50.0140.00916.15
7.4.40.0190.00616.43
7.4.30.0090.01516.36
7.4.20.0190.00416.14
7.4.10.0150.00916.16
7.4.00.0060.01716.20
7.3.330.0040.00416.39
7.3.320.0050.00013.16
7.3.310.0000.00716.16
7.3.300.0030.00316.30
7.3.290.0070.00716.39
7.3.280.0060.00916.43
7.3.260.0120.00616.43
7.3.230.0100.00716.27
7.3.210.0100.00716.52
7.3.200.0120.00616.29
7.3.190.0090.01316.19
7.3.180.0180.01216.31
7.3.170.0090.01316.48
7.3.160.0150.00816.27
7.3.150.0120.01216.20
7.3.140.0040.01816.36
7.3.130.0130.01316.37
7.3.120.0160.00816.32
7.3.110.0070.01516.17
7.3.100.0060.01515.95
7.3.90.0090.00916.05
7.3.80.0150.01016.15
7.3.70.0090.01216.12
7.3.60.0140.01216.27
7.3.50.0140.01116.21
7.3.40.0120.01216.34
7.3.30.0090.01716.25
7.3.20.0060.01316.45
7.3.10.0130.00816.56
7.3.00.0160.00816.24
7.2.330.0110.00716.80
7.2.320.0080.00816.79
7.2.310.0140.01416.57
7.2.300.0110.01616.16
7.2.290.0100.01316.36
7.2.280.0090.01316.41
7.2.270.0040.02116.23
7.2.260.0140.01416.50
7.2.250.0080.01416.54
7.2.240.0080.01616.32
7.2.230.0160.01216.25
7.2.220.0170.01016.46
7.2.210.0160.01416.59
7.2.200.0170.00716.07
7.2.190.0180.01116.38
7.2.180.0140.01316.61
7.2.170.0070.01416.37
7.2.160.0090.00916.28
7.2.150.0130.01016.52
7.2.140.0130.01316.38
7.2.130.0160.01016.59
7.2.120.0000.02316.47
7.2.110.0160.00816.55
7.2.100.0190.00716.54
7.2.90.0140.01616.53
7.2.80.0270.00316.57
7.2.70.0140.01216.25
7.2.60.0160.01116.46
7.2.50.0120.01216.63
7.2.40.0170.01016.59
7.2.30.0210.00416.78
7.2.20.0140.01716.39
7.2.10.0190.00816.46
7.2.00.0040.01716.50

preferences:
70.9 ms | 401 KiB | 5 Q