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; };

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.0170.00722.43
8.3.50.0180.00720.55
8.3.40.0100.01022.67
8.3.30.0170.00722.77
8.3.20.0080.00425.77
8.3.10.0080.00425.98
8.3.00.0040.00826.16
8.2.180.0130.00625.92
8.2.170.0200.00022.94
8.2.160.0110.01124.47
8.2.150.0030.00725.66
8.2.140.0000.01024.66
8.2.130.0070.00326.16
8.2.120.0070.00326.35
8.2.110.0080.00425.25
8.2.100.0080.00822.03
8.2.90.0050.00521.75
8.2.80.0030.00822.73
8.2.70.0070.00321.75
8.2.60.0000.01021.63
8.2.50.0060.00621.63
8.2.40.0040.00722.51
8.2.30.0050.00522.30
8.2.20.0070.00422.30
8.2.10.0070.00323.45
8.2.00.0080.00323.46
8.1.280.0170.00725.92
8.1.270.0000.00928.18
8.1.260.0130.00028.09
8.1.250.0040.00728.09
8.1.240.0030.01221.63
8.1.230.0110.00425.22
8.1.220.0080.00323.12
8.1.210.0030.00721.91
8.1.200.0110.00021.73
8.1.190.0070.00321.61
8.1.180.0030.00721.61
8.1.170.0040.00822.84
8.1.160.0110.00023.15
8.1.150.0000.01023.21
8.1.140.0030.00723.19
8.1.130.0060.00324.39
8.1.120.0040.00821.72
8.1.110.0100.00021.76
8.1.100.0030.00821.80
8.1.90.0000.01121.79
8.1.80.0110.00321.82
8.1.70.0090.00021.88
8.1.60.0040.00721.86
8.1.50.0110.00021.81
8.1.40.0030.00721.87
8.1.30.0060.00621.94
8.1.20.0000.01321.92
8.1.10.0000.01121.79
8.1.00.0080.00321.73
8.0.300.0070.00322.39
8.0.290.0070.00420.88
8.0.280.0060.00622.59
8.0.270.0120.00022.12
8.0.260.0000.00824.32
8.0.250.0090.00021.13
8.0.240.0040.00821.11
8.0.230.0090.00021.14
8.0.220.0000.00921.03
8.0.210.0030.00621.16
8.0.200.0000.00921.12
8.0.190.0060.00521.01
8.0.180.0030.00721.18
8.0.170.0040.00721.03
8.0.160.0040.00721.04
8.0.150.0000.01121.07
8.0.140.0000.01021.10
8.0.130.0050.00317.55
8.0.120.0030.00721.10
8.0.110.0070.00420.93
8.0.100.0070.00321.08
8.0.90.0000.01221.04
8.0.80.0150.01221.02
8.0.70.0070.00320.95
8.0.60.0060.00620.83
8.0.50.0100.00020.96
8.0.30.0110.01121.52
8.0.20.0160.01121.23
8.0.10.0100.00020.96
8.0.00.0120.01621.14
7.4.330.0030.00319.29
7.4.320.0030.00620.64
7.4.300.0000.00920.68
7.4.290.0030.00720.50
7.4.280.0030.00720.69
7.4.270.0100.00320.68
7.4.260.0040.00417.48
7.4.250.0030.00720.56
7.4.240.0070.00420.66
7.4.230.0030.00720.71
7.4.220.0000.01020.74
7.4.210.0060.01620.68
7.4.200.0030.00620.50
7.4.130.0110.01420.77
7.4.120.0170.00720.65
7.4.110.0070.02020.86
7.4.100.0130.01020.77
7.4.90.0090.01520.70
7.4.80.0110.01420.29
7.4.70.0130.01420.53
7.4.60.0210.00920.62
7.4.50.0180.01120.65
7.4.40.0180.01420.45
7.4.30.0160.01020.55
7.4.20.0160.00720.69
7.4.10.0080.01520.73
7.4.00.0160.00820.27
7.3.330.0030.00620.39
7.3.320.0080.00017.47
7.3.310.0030.00820.48
7.3.300.0060.00320.51
7.3.290.0150.00820.49
7.3.280.0100.01320.66
7.3.260.0110.02620.46
7.3.230.0100.01620.72
7.3.210.0100.01620.48
7.3.200.0140.01120.15
7.3.190.0190.01220.60
7.3.180.0220.00620.62
7.3.170.0090.01520.46
7.3.160.0140.01420.66
7.3.150.0150.01220.68
7.3.140.0110.01420.58
7.3.130.0130.01320.47
7.3.120.0110.01320.75
7.3.110.0150.01020.56
7.3.100.0160.00820.50
7.3.90.0120.01220.46
7.3.80.0140.01020.59
7.3.70.0150.00920.47
7.3.60.0090.01620.68
7.3.50.0140.01020.52
7.3.40.0110.01220.60
7.3.30.0150.00920.47
7.3.20.0180.00820.58
7.3.10.0280.01020.40
7.3.00.0070.01920.57
7.2.330.0090.01720.78
7.2.320.0160.01120.89
7.2.310.0230.00820.88
7.2.300.0210.01020.76
7.2.290.0160.01221.06
7.2.280.0170.00721.00
7.2.270.0100.01521.00
7.2.260.0120.01420.87
7.2.250.0170.00920.87
7.2.240.0150.01121.02
7.2.230.0150.01120.77
7.2.220.0120.01320.85
7.2.210.0100.01620.81
7.2.200.0130.01320.78
7.2.190.0080.01820.95
7.2.180.0080.01720.91
7.2.170.0180.00620.75
7.2.160.0140.01220.84
7.2.150.0240.01121.00
7.2.140.0100.01520.94
7.2.130.0150.01221.04
7.2.120.0170.00820.88
7.2.110.0140.01120.87
7.2.100.0250.01020.92
7.2.90.0190.01520.83
7.2.80.0100.01620.81
7.2.70.0160.01120.96
7.2.60.0180.01020.92
7.2.50.0100.01620.99
7.2.40.0170.00920.93
7.2.30.0120.01421.08
7.2.20.0170.01220.90
7.2.10.0240.00721.01
7.2.00.0140.01220.80

preferences:
45.55 ms | 401 KiB | 5 Q