3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = str_replace("testing","",""); if($test === "") $test = "random text"; echo "$test";

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.0110.00416.75
8.3.50.0130.00421.09
8.3.40.0090.00618.71
8.3.30.0090.00618.51
8.3.20.0040.00420.27
8.3.10.0050.00323.69
8.3.00.0080.00019.56
8.2.180.0120.00618.41
8.2.170.0120.00922.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0040.00817.50
8.2.110.0090.00020.57
8.2.100.0090.00317.79
8.2.90.0050.00318.06
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0070.00419.46
8.2.30.0030.00720.52
8.2.20.0060.00317.65
8.2.10.0070.00018.05
8.2.00.0000.00718.04
8.1.280.0070.00725.92
8.1.270.0060.01223.74
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.20
8.1.230.0000.01121.04
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00417.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00420.31
8.1.160.0000.00821.95
8.1.150.0040.00418.75
8.1.140.0000.00819.42
8.1.130.0070.00017.62
8.1.120.0000.00717.40
8.1.110.0000.00817.39
8.1.100.0050.00317.27
8.1.90.0080.00017.45
8.1.80.0040.00417.26
8.1.70.0030.00317.42
8.1.60.0040.00417.46
8.1.50.0030.00517.54
8.1.40.0050.00317.55
8.1.30.0000.00717.69
8.1.20.0000.00717.63
8.1.10.0040.00417.55
8.1.00.0040.00417.36
8.0.300.0050.00220.00
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0030.00317.29
8.0.260.0000.00717.16
8.0.250.0040.00416.89
8.0.240.0000.00716.93
8.0.230.0070.00016.79
8.0.220.0040.00416.71
8.0.210.0040.00416.82
8.0.200.0000.00616.77
8.0.190.0040.00416.72
8.0.180.0040.00416.73
8.0.170.0000.00716.75
8.0.160.0040.00416.85
8.0.150.0000.00716.71
8.0.140.0040.00416.74
8.0.130.0060.00013.28
8.0.120.0070.00016.78
8.0.110.0000.00716.86
8.0.100.0000.00716.93
8.0.90.0000.00716.86
8.0.80.0030.01516.88
8.0.70.0000.00716.66
8.0.60.0030.00316.67
8.0.50.0040.00416.67
8.0.30.0180.00317.12
8.0.20.0120.00817.40
8.0.10.0000.00816.99
8.0.00.0110.00716.74
7.4.330.0020.00215.19
7.4.320.0000.00616.54
7.4.300.0060.00016.50
7.4.290.0050.00216.51
7.4.280.0040.00416.57
7.4.270.0000.00716.63
7.4.260.0000.00716.48
7.4.250.0000.00816.45
7.4.240.0050.00216.54
7.4.230.0030.00316.47
7.4.220.0000.02216.67
7.4.210.0100.01016.58
7.4.200.0030.00316.49
7.4.160.0090.00616.51
7.4.150.0060.01217.40
7.4.140.0130.00417.86
7.4.130.0090.00916.39
7.4.120.0130.01116.47
7.4.110.0120.01216.53
7.4.100.0100.01316.50
7.4.90.0140.00616.61
7.4.80.0100.00619.39
7.4.70.0070.01016.62
7.4.60.0080.00816.52
7.4.50.0050.00016.38
7.4.40.0080.01416.51
7.4.30.0120.01216.65
7.4.00.0030.01315.02
7.3.330.0000.00713.09
7.3.320.0020.00213.19
7.3.310.0000.00616.25
7.3.300.0030.00316.27
7.3.290.0060.00916.23
7.3.280.0110.00816.25
7.3.270.0070.01017.40
7.3.260.0080.01116.53
7.3.250.0110.01016.37
7.3.240.0100.00816.37
7.3.230.0070.01016.39
7.3.210.0090.00916.51
7.3.200.0040.01216.40
7.3.190.0130.00616.45
7.3.180.0100.00716.42
7.3.170.0130.00316.52
7.3.160.0030.01316.32
7.2.330.0170.00016.73
7.2.320.0120.00616.41
7.2.310.0070.01016.62
7.2.300.0130.00616.55
7.2.290.0110.00716.56
7.2.00.0060.01019.18
7.1.100.0000.00818.33
7.1.70.0040.00417.18
7.1.60.0000.02419.50
7.1.50.0090.00416.90
7.1.00.0130.06722.51
7.0.200.0040.00416.82
7.0.60.0100.08020.02
7.0.50.0100.06317.88
7.0.40.0070.06719.98
7.0.30.0370.07720.34
7.0.20.0230.08020.18
7.0.10.0030.04320.18
7.0.00.0030.04320.23
5.6.210.0070.05720.47
5.6.200.0170.07718.17
5.6.190.0030.06320.43
5.6.180.0330.04720.58
5.6.170.0200.03720.71
5.6.160.0070.03720.50
5.6.150.0070.06318.10
5.6.140.0130.07318.21
5.6.130.0170.07318.11
5.6.120.0000.08720.89
5.6.110.0070.08721.07
5.6.100.0030.07020.95
5.6.90.0100.06320.97
5.6.80.0200.07320.39
5.5.350.0330.07020.40
5.5.340.0170.06717.96
5.5.330.0030.04320.06
5.5.320.0330.07320.43
5.5.310.1230.05320.51
5.5.300.0070.04717.95
5.5.290.0130.08017.95
5.5.280.0130.05720.89
5.5.270.0030.04720.76
5.5.260.0200.06720.86
5.5.250.0070.07320.57
5.5.240.0200.03020.23
5.4.450.0370.04319.46
5.4.440.0330.06019.64
5.4.430.0400.06319.27
5.4.420.0230.06019.59
5.4.410.0270.08019.47
5.4.400.0430.05319.31
5.4.390.0400.06019.28
5.4.380.0270.05318.80
5.4.370.0400.06719.28
5.4.360.0370.05718.95
5.4.350.0330.04319.28
5.4.340.0330.05319.31
5.4.320.0200.06319.31
5.4.310.0230.06018.76
5.4.300.0330.05018.90
5.4.290.0300.06318.99
5.4.280.0430.04318.77
5.4.270.0330.05019.14
5.4.260.0330.05319.09
5.4.250.0230.05719.11
5.4.240.0470.05018.99
5.4.230.0370.05019.17
5.4.220.0400.05319.09
5.4.210.0300.06319.30
5.4.200.0370.05019.14
5.4.190.0200.06319.24
5.4.180.0270.05319.13
5.4.170.0300.05719.18
5.4.160.0330.04719.27
5.4.150.0330.05719.05
5.4.140.0370.05716.50
5.4.130.0200.06016.46
5.4.120.0270.05016.37
5.4.110.0230.06316.52
5.4.100.0400.07016.54
5.4.90.0300.05316.29
5.4.80.0270.05016.05
5.4.70.0230.05016.46
5.4.60.0270.06316.36
5.4.50.0400.04716.51
5.4.40.0370.05316.04
5.4.30.0400.04316.20
5.4.20.0330.07016.16
5.4.10.0300.05016.39
5.4.00.0270.05015.71

preferences:
50.24 ms | 401 KiB | 5 Q