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(); ?>

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.0100.00718.18
8.3.50.0070.01221.14
8.3.40.0070.00718.59
8.3.30.0070.00718.59
8.3.20.0080.00018.69
8.3.10.0070.00020.92
8.3.00.0050.00223.70
8.2.180.0100.01016.50
8.2.170.0120.00322.96
8.2.160.0000.01320.13
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00321.00
8.2.110.0040.00420.24
8.2.100.0060.00617.78
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0040.00417.79
8.2.50.0080.00018.07
8.2.40.0050.00318.22
8.2.30.0070.00019.44
8.2.20.0040.00417.51
8.2.10.0040.00417.54
8.2.00.0030.00717.48
8.1.280.0150.00025.92
8.1.270.0000.00823.99
8.1.260.0110.00326.35
8.1.250.0000.00728.09
8.1.240.0100.00022.34
8.1.230.0040.00720.97
8.1.220.0000.00818.77
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0040.00417.41
8.1.180.0040.00418.10
8.1.170.0000.00818.53
8.1.160.0040.00418.68
8.1.150.0000.00818.50
8.1.140.0080.00017.20
8.1.130.0030.00317.71
8.1.120.0050.00217.26
8.1.110.0020.00517.22
8.1.100.0040.00417.27
8.1.90.0030.00317.29
8.1.80.0040.00417.33
8.1.70.0030.00317.22
8.1.60.0090.00317.45
8.1.50.0060.00617.38
8.1.40.0080.00517.40
8.1.30.0090.00417.48
8.1.20.0080.00517.50
8.1.10.0070.00517.44
8.1.00.0100.00317.31
8.0.300.0040.00419.98
8.0.290.0040.00417.05
8.0.280.0040.00418.41
8.0.270.0000.00717.18
8.0.260.0000.00616.62
8.0.250.0070.00016.70
8.0.240.0050.00316.83
8.0.230.0100.00016.86
8.0.220.0040.00416.78
8.0.210.0070.00016.59
8.0.200.0030.00316.64
8.0.190.0040.00516.73
8.0.180.0090.00216.72
8.0.170.0070.00216.67
8.0.160.0050.00316.66
8.0.150.0040.00416.72
8.0.140.0060.00316.60
8.0.130.0060.00315.52
8.0.120.0050.00516.75
8.0.110.0040.00516.67
8.0.100.0040.00416.66
8.0.90.0050.00316.72
8.0.80.0060.00816.72
8.0.70.0070.00516.55
8.0.60.0040.00816.74
8.0.50.0040.00716.69
8.0.30.0070.00916.80
8.0.20.0090.00717.08
8.0.10.0080.00516.79
8.0.00.0060.00916.77
7.4.330.0040.00415.04
7.4.320.0030.00516.53
7.4.300.0060.00016.46
7.4.290.0090.00316.42
7.4.280.0030.00416.39
7.4.270.0030.00316.40
7.4.260.0070.00515.31
7.4.250.0070.00516.39
7.4.240.0070.00516.30
7.4.230.0060.00616.26
7.4.220.0150.00316.37
7.4.210.0110.00616.44
7.4.200.0060.00516.25
7.4.190.0050.00716.47
7.4.180.0150.00216.52
7.4.160.0140.00516.31
7.4.150.0110.00516.67
7.4.140.0130.00717.07
7.4.130.0110.00616.38
7.4.120.0080.00816.31
7.4.110.0090.00916.29
7.4.100.0070.00716.36
7.4.90.0100.00516.32
7.4.80.0080.01117.34
7.4.70.0100.00616.35
7.4.60.0110.00516.39
7.4.50.0090.00416.24
7.4.40.0100.00618.37
7.4.30.0110.00516.32
7.4.20.0110.00216.26
7.4.10.0110.00216.24
7.4.00.0080.00715.85
7.3.330.0100.00315.06
7.3.320.0120.00215.08
7.3.310.0090.00416.09
7.3.300.0090.00416.06
7.3.290.0100.00516.19
7.3.280.0090.00816.20
7.3.270.0130.00616.55
7.3.260.0080.00917.39
7.3.250.0120.00516.17
7.3.240.0110.00616.07
7.3.230.0120.00716.25
7.3.220.0120.00516.16
7.3.210.0110.00516.20
7.3.200.0100.00417.17
7.3.190.0070.00616.16
7.3.180.0070.00616.18
7.3.170.0080.00516.09
7.3.160.0080.00616.13
7.3.150.0110.00516.10
7.3.140.0150.00316.04
7.3.130.0120.00416.14
7.3.120.0090.00715.41
7.3.110.0120.00516.07
7.3.100.0100.00615.98
7.3.90.0130.00416.25
7.3.80.0130.00416.07
7.3.70.0160.00016.30
7.3.60.0110.00616.34
7.3.50.0130.00416.39
7.3.40.0110.00616.30
7.3.30.0110.00516.35
7.3.20.0140.00217.18
7.3.10.0140.00417.16
7.3.00.0090.00616.88
7.2.340.0150.00116.27
7.2.330.0120.00516.36
7.2.320.0100.00816.34
7.2.310.0090.01016.26
7.2.300.0130.00416.31
7.2.290.0130.00416.31
7.2.280.0110.00616.15
7.2.270.0090.00816.21
7.2.260.0150.00216.18
7.2.250.0100.00716.18
7.2.240.0120.00516.21
7.2.230.0140.00516.12
7.2.220.0090.00816.17
7.2.210.0120.00516.27
7.2.200.0150.00416.30
7.2.190.0150.00216.22
7.2.180.0120.00516.37
7.2.170.0140.00516.35
7.2.160.0140.00416.46
7.2.150.0110.00617.32
7.2.140.0150.00217.33
7.2.130.0130.00317.29
7.2.120.0120.00417.29
7.2.110.0100.00617.15
7.2.100.0100.00417.13
7.2.90.0100.00717.11
7.2.80.0150.00117.06
7.2.70.0100.00517.18
7.2.60.0100.00617.06
7.2.50.0070.00717.14
7.2.40.0090.00617.16
7.2.30.0090.00617.16
7.2.20.0130.00517.78
7.2.10.0150.00317.86
7.2.00.0080.01018.19
7.1.330.0130.00317.22
7.1.320.0120.00517.28
7.1.310.0140.00217.28
7.1.300.0130.00317.20
7.1.290.0130.00317.25
7.1.280.0120.00417.28
7.1.270.0050.01017.24
7.1.260.0100.00617.22
7.1.250.0090.00516.72
7.1.240.0070.00616.72
7.1.230.0110.00316.63
7.1.220.0100.00516.61
7.1.210.0080.00716.73
7.1.200.0090.00516.78
7.1.190.0110.00416.75
7.1.180.0120.00216.66
7.1.170.0120.00216.62
7.1.160.0080.00616.69
7.1.150.0090.00716.64
7.1.140.0090.00516.67
7.1.130.0090.00516.74
7.1.120.0080.00516.68
7.1.110.0090.00616.68
7.1.100.0260.00816.50
7.1.90.0070.00716.67
7.1.80.0090.00616.67
7.1.70.0060.00716.65
7.1.60.0120.00517.28
7.1.50.0120.00621.25
7.1.40.0090.00716.67
7.1.30.0080.00716.79
7.1.20.0110.00416.53
7.1.10.0110.00316.58
7.1.00.0080.01218.08
7.0.330.0090.00416.30
7.0.320.0110.00216.21
7.0.310.0070.00616.43
7.0.300.0110.00416.33
7.0.290.0090.00516.20
7.0.280.0090.00516.28
7.0.270.0060.01016.41
7.0.260.0100.00416.29
7.0.250.0100.00416.54
7.0.240.0110.00316.52
7.0.230.0100.00316.36
7.0.220.0100.00616.41
7.0.210.0100.00416.37
7.0.200.0050.00616.54
7.0.190.0110.00416.44
7.0.180.0080.00716.42
7.0.170.0130.00416.34
7.0.160.0110.00416.39
7.0.150.0100.00316.35
7.0.140.0120.01917.83
7.0.130.0110.00216.43
7.0.120.0130.00516.40
7.0.110.0100.00516.30
7.0.100.0110.02417.20
7.0.90.0090.02417.22
7.0.80.0130.02217.24
7.0.70.0120.02317.15
7.0.60.0050.02617.25
7.0.50.0110.02117.27
7.0.40.0090.01516.83
7.0.30.0080.02416.93
7.0.20.0090.02316.78
7.0.10.0120.02116.81
7.0.00.0090.02116.70
5.6.400.0130.00215.70
5.6.390.0100.00515.64
5.6.380.0090.00415.24
5.6.370.0060.00815.19
5.6.360.0090.00515.14
5.6.350.0100.00515.13
5.6.340.0090.00615.10
5.6.330.0070.00615.19
5.6.320.0100.00515.04
5.6.310.0040.00915.16
5.6.300.0110.00315.13
5.6.290.0080.00515.17
5.6.280.0050.02316.65
5.6.270.0070.00715.06
5.6.260.0080.00615.10
5.6.250.0100.02316.52
5.6.240.0080.02416.50
5.6.230.0070.02416.61
5.6.220.0100.01516.44
5.6.210.0080.02516.59
5.6.200.0080.02616.66
5.6.190.0100.02316.71
5.6.180.0040.02816.67
5.6.170.0070.01916.68
5.6.160.0100.02416.69
5.6.150.0080.02716.69
5.6.140.0110.02316.68
5.6.130.0070.02616.56
5.6.120.0090.02316.61
5.6.110.0100.02216.57
5.6.100.0090.01716.61
5.6.90.0120.02216.54
5.6.80.0090.02216.39
5.6.70.0070.02416.56
5.6.60.0100.02316.47
5.6.50.0070.02216.48
5.6.40.0130.01916.36
5.6.30.0100.02116.41
5.6.20.0090.02316.45
5.6.10.0090.02416.35
5.6.00.0060.02516.36
5.5.380.0100.02015.71
5.5.370.0090.02315.79
5.5.360.0080.02315.61
5.5.350.0080.02315.67
5.5.340.0110.02115.78
5.5.330.0090.02315.84
5.5.320.0080.02215.76
5.5.310.0090.01615.79
5.5.300.0100.02215.76
5.5.290.0080.02215.79
5.5.280.0090.02215.80
5.5.270.0090.02415.80
5.5.260.0090.02315.79
5.5.250.0050.01715.71
5.5.240.0080.01615.75
5.5.230.0070.01615.64
5.5.220.0090.02015.72
5.5.210.0090.02315.76
5.5.200.0070.02115.61
5.5.190.0100.02115.64
5.5.180.0060.02515.59
5.5.170.0060.00714.02
5.5.160.0090.02115.52
5.5.150.0070.02315.50
5.5.140.0090.02215.55
5.5.130.0090.02015.49
5.5.120.0070.02415.51
5.5.110.0090.02215.51
5.5.100.0090.02115.58
5.5.90.0120.01915.57
5.5.80.0090.02215.65
5.5.70.0120.01615.72
5.5.60.0080.01715.67
5.5.50.0070.02415.59
5.5.40.0080.02215.65
5.5.30.0090.01515.66
5.5.20.0080.02215.61
5.5.10.0080.01115.51
5.5.00.0080.01415.52
5.4.450.0070.02414.03
5.4.440.0060.02413.96
5.4.430.0060.02313.97
5.4.420.0070.02114.00
5.4.410.0060.02413.92
5.4.400.0050.02413.88
5.4.390.0110.01713.85
5.4.380.0100.01713.79
5.4.370.0080.02113.78
5.4.360.0090.02213.80
5.4.350.0080.02113.86
5.4.340.0060.01413.85
5.4.330.0080.00212.07
5.4.320.0060.01513.90
5.4.310.0060.02113.81
5.4.300.0100.01513.83
5.4.290.0070.02113.81
5.4.280.0080.02113.84
5.4.270.0090.02213.83
5.4.260.0080.02013.83
5.4.250.0050.02413.79
5.4.240.0060.02213.74
5.4.230.0090.01913.69
5.4.220.0090.02113.75
5.4.210.0060.02213.68
5.4.200.0080.01913.75
5.4.190.0100.01413.79
5.4.180.0070.01313.73
5.4.170.0100.01013.73
5.4.160.0060.01313.72
5.4.150.0050.01313.68
5.4.140.0070.01113.15
5.4.130.0060.01513.21
5.4.120.0050.01313.17
5.4.110.0060.01213.16
5.4.100.0030.01713.21
5.4.90.0070.01013.10
5.4.80.0060.01113.16
5.4.70.0060.01813.24
5.4.60.0070.00913.14
5.4.50.0060.01513.11
5.4.40.0070.01213.11
5.4.30.0050.02013.14
5.4.20.0080.01713.21
5.4.10.0080.00913.13
5.4.00.0060.01213.01
5.3.290.0110.02012.98
5.3.280.0060.02212.95
5.3.270.0060.01112.87
5.3.260.0060.01212.87
5.3.250.0050.01312.95
5.3.240.0060.01412.87
5.3.230.0040.01512.89
5.3.220.0040.01412.79
5.3.210.0060.01212.78
5.3.200.0050.01212.79
5.3.190.0060.02112.83
5.3.180.0080.01912.95
5.3.170.0040.01312.89
5.3.160.0060.02212.87
5.3.150.0050.01412.82
5.3.140.0070.01812.86
5.3.130.0070.01312.93
5.3.120.0060.01212.95
5.3.110.0060.02112.94
5.3.100.0080.01112.81
5.3.90.0050.01512.81
5.3.80.0040.01312.77
5.3.70.0090.01312.69
5.3.60.0060.01112.84
5.3.50.0050.01912.67
5.3.40.0060.01212.68
5.3.30.0080.00912.75
5.3.20.0050.01112.65
5.3.10.0080.00812.59
5.3.00.0060.01112.49

preferences:
49.4 ms | 401 KiB | 5 Q