3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars=array(array("bmw",20,10,20),array("benz",30,10,0),array("gator",20,40,9),array("ferrari",15,60,18)); for ($row = 0; $row < 4; $row++) { for ($col = 0; $col < 4; $col++) { echo $cars[$row][$col]; } } echo "\n"; $d=strtotime("tomorrow"); echo date("Y-m-d h:i:sa", $d) . "<br>"; $d=strtotime("next Saturday"); echo date("Y-m-d h:i:sa", $d) . "<br>"; $d=strtotime("+3 Months"); echo date("Y-m-d h:i:sa", $d) . "<br>";

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.40.0070.00719.02
8.3.30.0110.00319.21
8.3.20.0040.00420.38
8.3.10.0040.00420.61
8.3.00.0050.00319.51
8.2.170.0150.00022.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00022.26
8.2.110.0060.00321.11
8.2.100.0100.00318.16
8.2.90.0040.00418.22
8.2.80.0050.00319.09
8.2.70.0060.00317.63
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0000.00818.33
8.2.30.0040.00419.39
8.2.20.0040.00418.10
8.2.10.0030.00618.05
8.2.00.0090.00017.86
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0050.00324.05
8.1.230.0030.01017.48
8.1.220.0050.00317.79
8.1.210.0040.00418.89
8.1.200.0100.00017.60
8.1.190.0030.00517.38
8.1.180.0040.00418.10
8.1.170.0040.00418.86
8.1.160.0040.00422.09
8.1.150.0040.00418.88
8.1.140.0000.00817.70
8.1.130.0050.00317.86
8.1.120.0000.01017.60
8.1.110.0090.00017.71
8.1.100.0030.00317.60
8.1.90.0020.00517.70
8.1.80.0040.00417.59
8.1.70.0030.00517.62
8.1.60.0050.00317.65
8.1.50.0030.00617.69
8.1.40.0000.00717.66
8.1.30.0050.00317.70
8.1.20.0030.00517.73
8.1.10.0000.00817.68
8.1.00.0050.00217.61
8.0.300.0040.00420.09
8.0.290.0050.00316.88
8.0.280.0000.00718.61
8.0.270.0070.00017.23
8.0.260.0030.00317.31
8.0.250.0030.00317.22
8.0.240.0000.00817.10
8.0.230.0030.00317.11
8.0.220.0000.00717.12
8.0.210.0030.00317.14
8.0.200.0080.00017.12
8.0.190.0040.00417.08
8.0.180.0030.00517.14
8.0.170.0080.00017.14
8.0.160.0040.00417.15
8.0.150.0050.00217.00
8.0.140.0040.00417.13
8.0.130.0000.00613.52
8.0.120.0070.00017.01
8.0.110.0000.00817.19
8.0.100.0040.00417.01
8.0.90.0070.00017.13
8.0.80.0130.00317.14
8.0.70.0040.00417.00
8.0.60.0040.00416.96
8.0.50.0040.00417.09
8.0.30.0100.01017.36
8.0.20.0130.00717.40
8.0.10.0050.00317.19
8.0.00.0090.01116.81
7.4.330.0000.00615.00
7.4.320.0030.00316.71
7.4.300.0030.00316.72
7.4.290.0000.00816.66
7.4.280.0050.00316.72
7.4.270.0030.00316.63
7.4.260.0080.00016.76
7.4.250.0040.00416.70
7.4.240.0020.00516.65
7.4.230.0070.00016.61
7.4.220.0030.01716.70
7.4.210.0090.00616.76
7.4.200.0040.00416.73
7.4.160.0090.01216.76
7.4.150.0110.00717.40
7.4.140.0170.00617.86
7.4.130.0040.01216.72
7.4.120.0130.00616.69
7.4.110.0070.01016.97
7.4.100.0080.00816.67
7.4.90.0090.00916.74
7.4.80.0130.01019.39
7.4.70.0030.01916.68
7.4.60.0100.00716.45
7.4.50.0000.00916.43
7.4.40.0100.00716.63
7.4.30.0120.00616.66
7.4.00.0070.01015.09
7.3.330.0000.00713.30
7.3.320.0000.00713.36
7.3.310.0000.00716.32
7.3.300.0070.00016.41
7.3.290.0070.00716.41
7.3.280.0130.00516.45
7.3.270.0140.00317.40
7.3.260.0160.00916.77
7.3.250.0110.00716.59
7.3.240.0090.00916.73
7.3.230.0080.01216.81
7.3.210.0060.01216.64
7.3.200.0030.01419.39
7.3.190.0100.00616.82
7.3.180.0040.01116.55
7.3.170.0080.00816.53
7.3.160.0060.01616.77
7.3.120.0100.01014.82
7.3.110.0110.00315.08
7.3.100.0060.01015.27
7.3.90.0000.01815.12
7.3.80.0000.01514.77
7.3.70.0030.00715.09
7.3.60.0070.00715.09
7.3.50.0070.00714.81
7.3.40.0100.00314.95
7.3.30.0030.00714.80
7.3.20.0000.01016.62
7.3.10.0070.00616.82
7.3.00.0040.01116.96
7.2.330.0090.00916.93
7.2.320.0070.01417.02
7.2.310.0130.00616.64
7.2.300.0070.01016.70
7.2.290.0110.01217.00
7.2.250.0100.01015.58
7.2.240.0000.01915.30
7.2.230.0080.00915.52
7.2.220.0060.01215.39
7.2.210.0080.00815.26
7.2.200.0050.00515.30
7.2.190.0070.00315.30
7.2.180.0030.01015.40
7.2.170.0110.00414.99
7.2.130.0060.00917.04
7.2.120.0070.00717.09
7.2.110.0090.00417.05
7.2.100.0050.00917.00
7.2.90.0040.01117.19
7.2.80.0050.00816.89
7.2.70.0070.00717.07
7.2.60.0090.00717.10
7.2.50.0090.00417.05
7.2.40.0100.00317.04
7.2.30.0070.01017.22
7.2.20.0020.01317.04
7.2.10.0040.00717.06
7.2.00.0060.00518.08
7.1.330.0040.01215.89
7.1.320.0060.00916.04
7.1.310.0080.00815.64
7.1.300.0040.00816.14
7.1.290.0040.01115.99
7.1.280.0120.00316.19
7.1.270.0040.00815.96
7.1.260.0030.00915.95
7.1.250.0030.01016.21
7.1.240.0000.00815.95
7.1.230.0030.01016.16
7.1.220.0120.00015.78
7.1.210.0030.01315.77
7.1.200.0030.00916.06
7.1.190.0110.00315.81
7.1.180.0060.00915.78
7.1.170.0070.00716.23
7.1.160.0060.01116.14
7.1.150.0100.00616.04
7.1.140.0040.01116.02
7.1.130.0090.00316.10
7.1.120.0070.00716.04
7.1.110.0050.00515.97
7.1.100.0080.00417.30
7.1.90.0100.00315.94
7.1.80.0090.00316.10
7.1.70.0040.00816.71
7.1.60.0070.01117.65
7.1.50.0070.01116.59
7.1.40.0060.00615.92
7.1.30.0080.00416.22
7.1.20.0040.01116.03
7.1.10.0040.00416.13
7.1.00.0030.04219.21
7.0.320.0060.00315.43
7.0.310.0070.00715.72
7.0.300.0100.00315.42
7.0.290.0040.00415.53
7.0.280.0090.00615.39
7.0.270.0090.00315.52
7.0.260.0080.00615.63
7.0.250.0100.00315.73
7.0.240.0070.00715.67
7.0.230.0000.00715.41
7.0.220.0090.00615.65
7.0.210.0030.00915.66
7.0.200.0070.00516.29
7.0.190.0040.00815.70
7.0.180.0120.00315.74
7.0.170.0090.00315.64
7.0.160.0040.00715.27
7.0.150.0030.00915.30
7.0.140.0050.04018.88
7.0.130.0060.00915.50
7.0.120.0040.00715.32
7.0.110.0000.01015.63
7.0.100.0100.03217.90
7.0.90.0100.02217.77
7.0.80.0100.02817.76
7.0.70.0060.03117.81
7.0.60.0080.02517.75
7.0.50.0130.04517.98
7.0.40.0020.05016.92
7.0.30.0070.02816.85
7.0.20.0020.03816.90
7.0.10.0000.05216.76
7.0.00.0020.02516.91
5.6.380.0080.00414.52
5.6.370.0070.00614.63
5.6.360.0030.01314.68
5.6.350.0040.01114.55
5.6.340.0030.01014.76
5.6.330.0100.00314.71
5.6.320.0100.00314.82
5.6.310.0070.00714.18
5.6.300.0060.00614.55
5.6.290.0100.00014.46
5.6.280.0070.03917.80
5.6.270.0000.01514.57
5.6.260.0110.00414.73
5.6.250.0100.03017.60
5.6.240.0080.04217.75
5.6.230.0030.04317.67
5.6.220.0030.03817.40
5.6.210.0060.04317.66
5.6.200.0050.04317.69
5.6.190.0070.04017.85
5.6.180.0060.02317.72
5.6.170.0080.02517.79
5.6.160.0100.02217.82
5.6.150.0050.03017.78
5.6.140.0030.02717.95
5.6.130.0050.03317.69
5.6.120.0080.02717.84
5.6.110.0050.03017.79
5.6.100.0090.02117.84
5.6.90.0090.02017.84
5.6.80.0040.02417.39
5.6.70.0060.02617.37
5.6.60.0070.02217.31
5.6.50.0060.01917.32
5.6.40.0020.02217.34
5.6.30.0030.02217.35
5.6.20.0070.04017.31
5.6.10.0030.02617.34
5.6.00.0060.03117.57
5.5.380.0020.03015.73
5.5.370.0080.04015.90
5.5.360.0060.03315.92
5.5.350.0030.04315.87
5.5.340.0030.04616.05
5.5.330.0030.02716.02
5.5.320.0070.04616.19
5.5.310.0070.04016.11
5.5.300.0030.04316.07
5.5.290.0060.02716.08
5.5.280.0110.02216.14
5.5.270.0050.04016.02
5.5.260.0110.02516.00
5.5.250.0060.02315.97
5.5.240.0070.02215.81
5.5.230.0010.02615.70
5.5.220.0030.02015.56
5.5.210.0080.01615.71
5.5.200.0070.01715.78
5.5.190.0050.01815.69
5.5.180.0060.01915.81
5.5.170.0070.00314.48
5.5.160.0030.03415.63
5.5.150.0000.02715.66
5.5.140.0040.02515.74
5.5.130.0030.04215.75
5.5.120.0040.02215.76
5.5.110.0030.02215.71
5.5.100.0060.02515.85
5.5.90.0050.02015.74
5.5.80.0030.02415.50
5.5.70.0020.02315.54
5.5.60.0030.03315.71
5.5.50.0070.02215.71
5.5.40.0090.01715.57
5.5.30.0100.01715.59
5.5.20.0090.01715.53
5.5.10.0070.01715.72
5.5.00.0030.02215.56
5.4.450.0130.01815.33
5.4.440.0080.02215.24
5.4.430.0040.02615.28
5.4.420.0040.02315.34
5.4.410.0110.01815.02
5.4.400.0070.02015.02
5.4.390.0090.01515.05
5.4.380.0070.02015.06
5.4.370.0040.01915.08
5.4.360.0050.01715.24
5.4.350.0080.01515.16
5.4.340.0080.02115.22
5.4.330.0090.00411.19
5.4.320.0050.02315.08
5.4.310.0050.02014.97
5.4.300.0040.03815.25
5.4.290.0080.03315.20
5.4.280.0060.04615.11
5.4.270.0080.03314.85
5.4.260.0050.04014.96
5.4.250.0070.03215.16
5.4.240.0070.01814.97
5.4.230.0060.02015.12
5.4.220.0030.02815.14
5.4.210.0020.02715.17
5.4.200.0030.02515.25
5.4.190.0080.02115.16
5.4.180.0120.02015.10
5.4.170.0060.02015.11
5.4.160.0070.02014.95
5.4.150.0090.01715.10
5.4.140.0030.02313.79
5.4.130.0070.03213.74
5.4.120.0020.02613.79
5.4.110.0080.04013.74
5.4.100.0050.04013.81
5.4.90.0050.03613.71
5.4.80.0030.03613.67
5.4.70.0050.03513.75
5.4.60.0110.03213.73
5.4.50.0050.03913.76
5.4.40.0080.04013.83
5.4.30.0060.03013.88
5.4.20.0080.02213.73
5.4.10.0060.03813.87
5.4.00.0080.03213.39
5.3.290.0040.02612.65
5.3.280.0030.02312.62
5.3.270.0160.01012.66
5.3.260.0080.02012.60
5.3.250.0070.01812.44
5.3.240.0070.01512.65
5.3.230.0060.03912.63
5.3.220.0060.03212.51
5.3.210.0040.03412.48
5.3.200.0030.04212.47
5.3.190.0040.04012.50
5.3.180.0020.03012.67
5.3.170.0070.03912.60
5.3.160.0030.04112.55
5.3.150.0010.04312.46
5.3.140.0120.03512.57
5.3.130.0050.03512.51
5.3.120.0020.02912.52
5.3.110.0060.03312.57
5.3.100.0070.04012.30
5.3.90.0100.03712.30
5.3.80.0020.03412.19
5.3.70.0050.03912.20
5.3.60.0050.04112.22
5.3.50.0090.03112.30
5.3.40.0070.02512.06
5.3.30.0050.03212.25
5.3.20.0000.03511.97
5.3.10.0050.04011.98
5.3.00.0090.03711.91
5.2.170.0030.02210.76
5.2.160.0030.03510.73
5.2.150.0070.03010.76
5.2.140.0080.03010.70
5.2.130.0050.03110.71
5.2.120.0020.03510.64
5.2.110.0030.03010.63
5.2.100.0090.02810.67
5.2.90.0030.03310.63
5.2.80.0060.03210.72
5.2.70.0070.03110.68
5.2.60.0080.02310.61
5.2.50.0080.02510.59
5.2.40.0040.03410.68
5.2.30.0080.02810.65
5.2.20.0030.02710.67
5.2.10.0000.03410.65
5.2.00.0080.02810.52
5.1.60.0060.02110.08
5.1.50.0020.02010.18
5.1.40.0080.02210.09
5.1.30.0050.03310.30
5.1.20.0070.02310.29
5.1.10.0050.02310.22
5.1.00.0040.02810.22
5.0.50.0030.0269.76
5.0.40.0060.0219.76
5.0.30.0070.0309.76
5.0.20.0040.0159.76
5.0.10.0030.0239.76
5.0.00.0020.0359.76
4.4.90.0020.0219.76
4.4.80.0050.0199.76
4.4.70.0020.0229.76
4.4.60.0030.0209.76
4.4.50.0030.0189.76
4.4.40.0040.0289.76
4.4.30.0020.0209.76
4.4.20.0050.0179.76
4.4.10.0020.0209.76
4.4.00.0020.0279.76
4.3.110.0020.0209.76
4.3.100.0000.0129.76
4.3.90.0020.0189.76
4.3.80.0010.0309.76
4.3.70.0040.0159.76
4.3.60.0060.0209.76
4.3.50.0020.0159.76
4.3.40.0000.0309.76
4.3.30.0000.0229.76
4.3.20.0020.0189.76
4.3.10.0020.0199.76
4.3.00.0000.0229.76

preferences:
43.81 ms | 400 KiB | 5 Q