3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars = array ( array("Volvo",22,18), array("BMW",15,13), array("Saab",5,2), array("Land Rover",17,15) ); // Produce: You should eat pizza, beer, and ice cream every day $phrase = "You should eat fruits, vegetables, and fiber every day."; $healthy = array("fruits", "vegetables", "fiber"); $yummy = array("pizza", "beer", "ice cream"); $newphrase = str_replace($healthy, $yummy, $phrase); $vevo = '02/09/2016'; echo $vevo; print_r($vevo); $date = new DateTime($vevo); echo $date->format('Y-m-d'); var_dump($cars); var_dump($newphrase); ?>

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.0120.00618.71
8.3.30.0150.00318.85
8.3.20.0040.00420.29
8.3.10.0070.00021.76
8.3.00.0040.00422.58
8.2.170.0120.00322.96
8.2.160.0140.00019.17
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00622.17
8.2.120.0070.00026.35
8.2.110.0040.00722.08
8.2.100.0040.00818.02
8.2.90.0050.00319.29
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0090.00018.04
8.2.50.0060.00318.10
8.2.40.0040.00422.45
8.2.30.0070.00319.21
8.2.20.0030.00517.73
8.2.10.0000.00718.25
8.2.00.0030.00517.88
8.1.270.0060.00323.97
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00020.96
8.1.230.0140.00017.89
8.1.220.0000.00917.91
8.1.210.0040.00418.77
8.1.200.0040.00417.50
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0050.00318.48
8.1.160.0000.00722.05
8.1.150.0040.00418.93
8.1.140.0040.00419.58
8.1.130.0030.00317.73
8.1.120.0020.00517.63
8.1.110.0040.00417.61
8.1.100.0000.00717.64
8.1.90.0040.00417.59
8.1.80.0040.00417.57
8.1.70.0080.00017.58
8.1.60.0060.00317.54
8.1.50.0000.00817.46
8.1.40.0000.00817.42
8.1.30.0060.00317.57
8.1.20.0020.00517.77
8.1.10.0000.00817.58
8.1.00.0000.00817.73
8.0.300.0040.00718.77
8.0.290.0080.00016.88
8.0.280.0030.00418.52
8.0.270.0070.00017.20
8.0.260.0000.00617.46
8.0.250.0050.00317.22
8.0.240.0080.00017.09
8.0.230.0030.00317.07
8.0.220.0070.00017.03
8.0.210.0000.00716.99
8.0.200.0050.00317.09
8.0.190.0050.00316.93
8.0.180.0040.00417.03
8.0.170.0040.00417.04
8.0.160.0040.00316.99
8.0.150.0070.00016.94
8.0.140.0030.00316.96
8.0.130.0030.00313.36
8.0.120.0050.00316.99
8.0.110.0000.00716.91
8.0.100.0030.00516.90
8.0.90.0080.00017.00
8.0.80.0080.00816.99
8.0.70.0050.00216.98
8.0.60.0000.00717.14
8.0.50.0040.00416.86
8.0.30.0140.00717.23
8.0.20.0080.01217.40
8.0.10.0000.00717.21
8.0.00.0150.00816.86
7.4.330.0050.00015.20
7.4.320.0000.00616.63
7.4.300.0060.00016.66
7.4.290.0050.00516.66
7.4.280.0000.00916.58
7.4.270.0030.00316.46
7.4.260.0050.00216.54
7.4.250.0070.00016.53
7.4.240.0050.00316.55
7.4.230.0070.00016.53
7.4.220.0120.01516.66
7.4.210.0040.01216.54
7.4.200.0070.00016.64
7.4.160.0050.01116.60
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0090.00916.68
7.4.120.0110.00716.53
7.4.110.0100.01016.50
7.4.100.0100.00916.67
7.4.90.0150.00316.58
7.4.80.0150.00319.39
7.4.70.0090.01116.61
7.4.60.0040.01216.76
7.4.50.0070.00716.70
7.4.40.0070.01016.48
7.4.30.0140.01116.57
7.4.00.0060.00914.80
7.3.330.0050.00013.23
7.3.320.0000.00613.22
7.3.310.0070.00016.38
7.3.300.0000.00716.35
7.3.290.0050.01316.29
7.3.280.0090.01116.37
7.3.270.0140.00317.40
7.3.260.0120.00516.58
7.3.250.0110.00916.54
7.3.240.0120.00716.52
7.3.230.0060.01816.66
7.3.210.0030.01416.45
7.3.200.0070.01016.51
7.3.190.0030.01416.38
7.3.180.0100.00616.32
7.3.170.0110.00616.51
7.3.160.0130.00316.31
7.3.10.0050.00916.80
7.3.00.0060.00816.76
7.2.330.0140.00716.46
7.2.320.0090.01316.45
7.2.310.0150.00916.62
7.2.300.0190.00616.59
7.2.290.0180.00716.81
7.2.130.0060.00916.97
7.2.120.0050.01016.89
7.2.110.0060.00916.82
7.2.100.0100.00216.95
7.2.90.0060.00816.95
7.2.80.0080.00516.90
7.2.70.0050.00716.81
7.2.60.0070.00616.99
7.2.50.0030.00916.91
7.2.40.0050.00816.88
7.2.30.0050.00717.11
7.2.20.0050.00916.92
7.2.10.0070.00917.11
7.2.00.0080.00816.76
7.1.250.0050.00815.98
7.1.200.0030.00515.97
7.1.70.0040.00417.38
7.1.60.0130.00617.38
7.1.00.0030.07722.32
7.0.200.0220.00615.07
7.0.100.0230.06719.95
7.0.90.0530.05720.21
7.0.80.0300.06320.02
7.0.70.0470.05319.91
7.0.60.0400.05719.93
7.0.50.0270.06320.24
7.0.40.0370.06020.29
7.0.30.0270.06020.23
7.0.20.0270.06320.23
7.0.10.0330.05320.33
7.0.00.0270.07020.45
5.6.250.0100.06020.84
5.6.240.0070.07320.58
5.6.230.0070.06320.67
5.6.220.0100.08020.73
5.6.210.0200.05320.72
5.6.200.0130.05721.11
5.6.190.0130.05321.08
5.6.180.0270.05721.07
5.6.170.0070.06721.03
5.6.160.0230.05321.18
5.6.150.0170.06321.18
5.6.140.0170.06321.09
5.6.130.0000.07021.13
5.6.120.0070.06321.09
5.6.110.0130.06721.19
5.6.100.0130.05721.13
5.6.90.0130.06721.05
5.6.80.0130.05320.45
5.6.70.0100.05720.56
5.6.60.0030.06020.48
5.6.50.0070.06720.49
5.6.40.0130.05720.50
5.6.30.0130.05020.50
5.6.20.0070.05720.44
5.6.10.0200.04720.38
5.6.00.0170.05020.37

preferences:
58.52 ms | 400 KiB | 5 Q