3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callback($buffer) { // replace all the apples with oranges return (str_replace("apples", "oranges", $buffer)); } ob_start("callback"); ?> <html> <body> <p>It's like comparing apples to oranges.</p> </body> </html> <?php ob_end_flush(); function callback2($buffer) { // replace all the apples with oranges return (str_replace("apples", "oranges", $buffer)); } ob_start(null); ?> <html> <body> <p>It's like comparing apples to oranges.</p> </body> </html> <?php ob_end_flush(); ?>

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.70.0090.00618.18
8.3.60.0000.02116.25
8.3.50.0140.01021.99
8.3.40.0140.00018.57
8.3.30.0070.00718.96
8.3.20.0040.00420.23
8.3.10.0080.00023.48
8.3.00.0080.00020.94
8.2.180.0100.01016.32
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00519.23
8.2.110.0030.00622.08
8.2.100.0090.00319.52
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0050.00317.38
8.2.60.0080.00017.91
8.2.50.0060.00318.07
8.2.40.0080.00019.76
8.2.30.0050.00318.21
8.2.20.0070.00017.67
8.2.10.0050.00218.10
8.2.00.0040.00417.59
8.1.280.0100.00325.92
8.1.270.0040.00422.09
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00324.01
8.1.230.0070.00319.20
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0000.00818.48
8.1.160.0040.00421.95
8.1.150.0040.00418.38
8.1.140.0040.00417.20
8.1.130.0040.00419.55
8.1.120.0030.00317.37
8.1.110.0000.00817.31
8.1.100.0040.00417.23
8.1.90.0000.00717.34
8.1.80.0060.00317.32
8.1.70.0070.00017.23
8.1.60.0030.00517.35
8.1.50.0000.00817.28
8.1.40.0000.00917.41
8.1.30.0050.00317.53
8.1.20.0060.00317.60
8.1.10.0030.00617.32
8.1.00.0040.00417.36
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0080.00018.32
8.0.270.0030.00317.06
8.0.260.0000.00617.11
8.0.250.0000.00716.85
8.0.240.0000.00716.85
8.0.230.0000.00816.79
8.0.220.0080.00016.66
8.0.210.0030.00316.78
8.0.200.0030.00316.68
8.0.190.0000.00716.81
8.0.180.0090.00016.78
8.0.170.0080.00016.85
8.0.160.0040.00416.65
8.0.150.0050.00316.77
8.0.140.0030.00516.74
8.0.130.0030.00313.14
8.0.120.0040.00416.61
8.0.110.0050.00316.73
8.0.100.0000.00716.69
8.0.90.0040.00416.73
8.0.80.0030.01316.75
8.0.70.0070.00016.82
8.0.60.0040.00416.62
8.0.50.0060.00316.58
8.0.30.0070.01116.93
8.0.20.0110.00817.40
8.0.10.0000.00716.82
8.0.00.0110.00816.49
7.4.330.0000.00615.00
7.4.320.0000.00616.46
7.4.300.0040.00416.43
7.4.290.0040.00416.43
7.4.280.0000.00716.49
7.4.270.0070.00016.38
7.4.260.0040.00416.36
7.4.250.0000.00716.34
7.4.240.0030.00316.35
7.4.230.0030.00316.30
7.4.220.0060.01216.58
7.4.210.0060.01316.47
7.4.200.0070.00016.56
7.4.160.0080.00816.47
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0030.01516.45
7.4.120.0070.01016.36
7.4.110.0110.00716.34
7.4.100.0090.00916.56
7.4.90.0130.00316.48
7.4.80.0110.00719.39
7.4.70.0080.00816.30
7.4.60.0060.00916.39
7.4.50.0050.00316.23
7.4.40.0060.01016.31
7.4.30.0030.01316.34
7.4.00.0030.00914.73
7.3.330.0000.00513.19
7.3.320.0000.00713.17
7.3.310.0030.00316.04
7.3.300.0030.00316.05
7.3.290.0030.01016.18
7.3.280.0060.01016.18
7.3.270.0100.00617.40
7.3.260.0120.00416.43
7.3.250.0090.00916.16
7.3.240.0180.00016.25
7.3.230.0080.00816.39
7.3.210.0130.00416.39
7.3.200.0150.00619.39
7.3.190.0100.01316.40
7.3.180.0100.00716.24
7.3.170.0180.00016.45
7.3.160.0120.00916.21
7.3.120.0000.01414.70
7.3.10.0040.00416.25
7.3.00.0070.00316.52
7.2.330.0100.00716.57
7.2.320.0120.00616.51
7.2.310.0090.01216.54
7.2.300.0070.01016.52
7.2.290.0120.00616.38
7.2.130.0100.00016.51
7.2.120.0070.00716.73
7.2.110.0080.00616.61
7.2.100.0000.01016.75
7.2.90.0030.00616.81
7.2.80.0110.00416.61
7.2.70.0040.00716.74
7.2.60.0060.00816.66
7.2.50.0000.01716.74
7.2.40.0000.00916.90
7.2.30.0080.00416.81
7.2.20.0030.00916.82
7.2.10.0070.00316.56
7.2.00.0000.01117.92
7.1.250.0000.00815.29
7.1.200.0130.00015.64
7.1.100.0050.00518.13
7.1.70.0060.00617.13
7.1.60.0090.01519.70
7.1.50.0090.01516.56
7.1.00.0070.07322.31
7.0.200.0030.00316.86
7.0.140.0100.06022.09
7.0.120.0030.05321.91
7.0.110.0000.07022.07
7.0.100.0000.08322.12
7.0.90.0030.04022.22
7.0.80.0030.04022.02
7.0.70.0000.07722.14
7.0.60.0030.03722.01
7.0.50.0030.06721.91
7.0.40.0030.04720.03
7.0.30.0100.03019.89
7.0.20.0070.06020.12
7.0.10.0070.05320.04
7.0.00.0030.04020.13
5.6.280.0070.06721.00
5.6.270.0000.04021.07
5.6.260.0030.08020.92
5.6.250.0000.07321.05
5.6.240.0030.04021.00
5.6.230.0030.05320.83
5.6.220.0030.06321.05
5.6.210.0030.08020.93
5.6.200.0030.03720.89
5.6.190.0030.05020.75
5.6.180.0030.05720.80
5.6.170.0070.03320.84
5.6.160.0000.07721.00
5.6.150.0030.04021.00
5.6.140.0130.07720.99
5.6.130.0000.04720.88
5.6.120.0030.08020.99
5.6.110.0070.07720.99
5.6.100.0000.06721.02
5.6.90.0030.10020.94
5.6.80.0000.04720.13
5.6.70.0000.03720.38
5.6.60.0030.03720.07
5.6.50.0000.03720.38
5.6.40.0000.08020.35
5.6.30.0070.03320.25
5.6.20.0000.04320.14
5.6.10.0000.04020.23
5.6.00.0000.04320.34
5.5.380.0000.06017.64
5.5.370.0070.07017.56
5.5.360.0000.04717.63
5.5.350.0030.03717.63
5.5.340.0030.04718.14
5.5.330.0000.04018.09
5.5.320.0000.07018.13
5.5.310.0000.04018.26
5.5.300.0000.04017.91
5.5.290.0030.04018.22
5.5.280.0030.06718.09
5.5.270.0000.04018.25
5.5.260.0000.04018.12
5.5.250.0070.07317.91
5.5.240.0030.07017.49
5.5.230.0100.07317.53
5.5.220.0000.05017.60
5.5.210.0070.03017.48
5.5.200.0000.06717.45
5.5.190.0070.03017.61
5.5.180.0000.05317.60
5.5.160.0030.04017.26
5.5.150.0030.03717.45
5.5.140.0000.04017.45
5.5.130.0070.03717.60
5.5.120.0030.03717.27
5.5.110.0000.03717.45
5.5.100.0100.02717.17
5.5.90.0000.03717.20
5.5.80.0000.03717.38
5.5.70.0030.04317.17
5.5.60.0030.03717.46
5.5.50.0030.04017.46
5.5.40.0000.07317.15
5.5.30.0000.03317.33
5.5.20.0030.03717.47
5.5.10.0070.07717.34
5.5.00.0030.03317.14
5.4.450.0030.03719.31
5.4.440.0030.06019.46
5.4.430.0100.04019.61
5.4.420.0030.06719.29
5.4.410.0000.03719.37
5.4.400.0000.04019.29
5.4.390.0070.04718.94
5.4.380.0030.07318.96
5.4.370.0070.06718.94
5.4.360.0070.04318.94
5.4.350.0070.04018.96
5.4.340.0030.04318.96
5.4.320.0000.04018.95
5.4.310.0030.03318.95
5.4.300.0030.03319.28
5.4.290.0000.03719.09
5.4.280.0000.04718.93
5.4.270.0000.04718.93
5.4.260.0030.05719.28
5.4.250.0030.03719.11
5.4.240.0000.03318.95
5.4.230.0030.03019.08
5.4.220.0030.04019.03
5.4.210.0030.06019.16
5.4.200.0070.04319.11
5.4.190.0000.04019.28
5.4.180.0100.07019.03
5.4.170.0070.06019.08
5.4.160.0030.04318.94
5.4.150.0000.04018.93
5.4.140.0000.03716.29
5.4.130.0000.04716.37
5.4.120.0000.03716.28
5.4.110.0030.07316.47
5.4.100.0030.07716.51
5.4.90.0130.06716.47
5.4.80.0030.07016.57
5.4.70.0000.07016.50
5.4.60.0000.05716.58
5.4.50.0070.06716.35
5.4.40.0070.06016.47
5.4.30.0070.03716.41
5.4.20.0030.07716.18
5.4.10.0000.05716.38
5.4.00.0000.04015.90
5.3.290.0000.04014.63
5.3.280.0030.03314.59
5.3.270.0000.07014.59
5.3.260.0000.04714.75
5.3.250.0070.07014.74
5.3.240.0000.05014.62
5.3.230.0100.06314.61
5.3.220.0100.03314.80
5.3.210.0030.04014.59
5.3.200.0030.07314.70
5.3.190.0000.07014.72
5.3.180.0000.08314.42
5.3.170.0030.07014.80
5.3.160.0000.04714.69
5.3.150.0070.07314.58
5.3.140.0070.07014.59
5.3.130.0000.04014.61
5.3.120.0070.07014.57
5.3.110.0070.07714.55
5.3.100.0030.04014.14
5.3.90.0070.03014.11
5.3.80.0030.07314.04
5.3.70.0130.03014.02
5.3.60.0100.06714.07
5.3.50.0100.07314.07
5.3.40.0000.06713.98
5.3.30.0030.07013.99
5.3.20.0000.07713.82
5.3.10.0000.04313.90
5.3.00.0100.02713.66
5.2.170.0100.05711.16
5.2.160.0000.06011.17
5.2.150.0000.06311.16
5.2.140.0070.06311.38
5.2.130.0000.06011.10
5.2.120.0070.04311.06
5.2.110.0000.05011.33
5.2.100.0000.02711.16
5.2.90.0000.04311.19
5.2.80.0000.03311.17
5.2.70.0030.03711.22
5.2.60.0000.03011.03
5.2.50.0030.02711.02
5.2.40.0030.03711.00
5.2.30.0000.05710.94
5.2.20.0070.05310.99
5.2.10.0000.03311.10
5.2.00.0030.04010.85
5.1.60.0030.04010.02
5.1.50.0000.0409.97
5.1.40.0000.03010.23
5.1.30.0030.04310.43
5.1.20.0070.04710.58
5.1.10.0000.0279.90
5.1.00.0030.0239.90
5.0.50.0030.0239.83
5.0.40.0030.0179.83
5.0.30.0000.0409.83
5.0.20.0070.0139.83
5.0.10.0030.0179.83
5.0.00.0000.0309.83
4.4.90.0000.0139.83
4.4.80.0000.0239.83
4.4.70.0030.0209.83
4.4.60.0000.0179.83
4.4.50.0000.0279.83
4.4.40.0000.0339.83
4.4.30.0000.0339.83
4.4.20.0000.0239.83
4.4.10.0000.0239.83
4.4.00.0000.0379.83
4.3.110.0000.0239.83
4.3.100.0000.0179.83
4.3.90.0070.0109.83
4.3.80.0000.0239.83
4.3.70.0030.0139.83
4.3.60.0000.0209.83
4.3.50.0030.0139.83
4.3.40.0070.0179.83
4.3.30.0000.0139.83
4.3.20.0000.0179.83
4.3.10.0000.0139.83
4.3.00.0030.0239.83

preferences:
51.45 ms | 401 KiB | 5 Q