3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array(); for($x=0;$x<10000;$x++){ $a = ["name"=>"Adam","age"=>35]; $a["name"] = $a["name"] . "2"; $s[] = $a; unset($a); };

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.0130.00722.54
8.3.50.0100.01720.45
8.3.40.0190.00622.60
8.3.30.0190.00923.00
8.3.20.0060.00625.94
8.3.10.0070.00425.76
8.3.00.0070.00426.16
8.2.180.0190.00925.92
8.2.170.0200.00322.96
8.2.160.0070.02024.52
8.2.150.0070.00325.66
8.2.140.0030.00626.23
8.2.130.0040.00726.16
8.2.120.0090.00325.08
8.2.110.0080.00326.32
8.2.100.0110.00421.72
8.2.90.0080.00321.97
8.2.80.0040.00822.91
8.2.70.0080.00421.50
8.2.60.0030.00721.93
8.2.50.0080.00421.75
8.2.40.0000.01022.28
8.2.30.0030.00822.32
8.2.20.0030.00722.18
8.2.10.0000.01123.47
8.2.00.0040.00723.39
8.1.280.0070.01425.92
8.1.270.0040.00428.14
8.1.260.0030.00626.35
8.1.250.0070.00328.09
8.1.240.0050.00528.22
8.1.230.0090.00622.18
8.1.220.0050.00522.04
8.1.210.0040.00721.73
8.1.200.0030.01021.86
8.1.190.0040.00721.50
8.1.180.0030.00721.60
8.1.170.0080.00322.88
8.1.160.0070.00323.23
8.1.150.0000.01023.23
8.1.140.0000.01023.21
8.1.130.0030.00624.56
8.1.120.0000.01121.84
8.1.110.0040.00721.71
8.1.100.0000.01121.74
8.1.90.0030.00621.73
8.1.80.0110.00421.80
8.1.70.0030.00721.76
8.1.60.0060.00621.86
8.1.50.0070.00321.89
8.1.40.0110.00021.91
8.1.30.0070.00321.97
8.1.20.0040.00821.93
8.1.10.0080.00321.91
8.1.00.0040.00721.85
8.0.300.0070.00421.04
8.0.290.0040.00720.75
8.0.280.0030.00622.61
8.0.270.0060.00322.09
8.0.260.0060.00322.71
8.0.250.0050.00521.16
8.0.240.0070.00321.18
8.0.230.0070.00320.97
8.0.220.0030.00621.11
8.0.210.0060.00321.16
8.0.200.0030.00620.96
8.0.190.0050.00521.07
8.0.180.0110.00021.05
8.0.170.0040.00821.09
8.0.160.0080.00421.14
8.0.150.0050.00521.08
8.0.140.0000.01021.11
8.0.130.0060.00317.62
8.0.120.0030.00721.04
8.0.110.0070.00321.10
8.0.100.0070.00321.07
8.0.90.0070.00321.03
8.0.80.0100.01421.11
8.0.70.0070.00421.08
8.0.60.0030.00820.86
8.0.50.0070.00321.04
8.0.30.0160.01021.18
8.0.20.0180.00721.17
8.0.10.0080.00320.96
8.0.00.0170.01420.79
7.4.330.0030.00319.28
7.4.320.0060.00320.49
7.4.300.0030.00620.57
7.4.290.0100.00020.57
7.4.280.0090.00320.63
7.4.270.0080.00420.57
7.4.260.0000.00917.46
7.4.250.0070.00320.61
7.4.240.0040.00720.62
7.4.230.0000.01020.71
7.4.220.0060.00420.62
7.4.210.0160.01120.74
7.4.200.0030.00620.45
7.4.130.0120.01620.62
7.4.120.0040.02020.84
7.4.110.0070.02120.54
7.4.100.0150.00920.73
7.4.90.0130.00920.77
7.4.80.0170.01420.61
7.4.70.0130.01020.78
7.4.60.0170.00820.57
7.4.50.0140.01020.49
7.4.40.0160.01320.83
7.4.30.0040.02220.47
7.4.20.0190.00720.77
7.4.10.0100.01720.46
7.4.00.0060.01920.54
7.3.330.0080.00420.40
7.3.320.0030.00617.44
7.3.310.0000.01020.41
7.3.300.0030.00720.50
7.3.290.0110.01020.49
7.3.280.0170.01020.62
7.3.260.0120.01620.70
7.3.230.0170.01220.69
7.3.210.0090.01320.38
7.3.200.0210.00420.52
7.3.190.0130.01320.73
7.3.180.0140.01020.68
7.3.170.0100.01320.48
7.3.160.0160.01020.47
7.3.150.0150.00920.90
7.3.140.0130.01020.57
7.3.130.0150.00920.61
7.3.120.0120.01220.71
7.3.110.0100.01320.71
7.3.100.0070.01720.55
7.3.90.0100.01320.61
7.3.80.0170.00720.70
7.3.70.0100.01420.44
7.3.60.0120.01220.61
7.3.50.0200.00720.39
7.3.40.0130.01320.67
7.3.30.0130.01320.56
7.3.20.0170.01020.50
7.3.10.0190.00820.65
7.3.00.0220.01120.81
7.2.330.0120.01220.71
7.2.320.0190.00621.03
7.2.310.0110.01420.70
7.2.300.0090.01520.93
7.2.290.0150.01221.02
7.2.280.0070.01721.08
7.2.270.0170.01020.82
7.2.260.0100.01920.75
7.2.250.0100.01620.67
7.2.240.0100.01420.97
7.2.230.0120.01221.09
7.2.220.0130.01321.01
7.2.210.0100.01320.93
7.2.200.0230.00720.92
7.2.190.0100.01620.91
7.2.180.0100.01720.84
7.2.170.0130.01620.86
7.2.160.0210.00620.98
7.2.150.0120.01620.96
7.2.140.0190.00920.86
7.2.130.0100.02020.86
7.2.120.0190.00620.83
7.2.110.0180.01120.96
7.2.100.0150.00921.01
7.2.90.0220.00320.96
7.2.80.0120.01221.05
7.2.70.0130.01620.90
7.2.60.0210.00920.95
7.2.50.0130.01320.77
7.2.40.0110.01520.94
7.2.30.0120.01521.00
7.2.20.0190.00621.02
7.2.10.0150.00920.80
7.2.00.0160.01020.93

preferences:
37.87 ms | 401 KiB | 5 Q