3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myVariable = 1; $myVariable2 = str_replace(array(1, 2, 3), array('do 25 lat', 'od 26 do 35 lat', 'pow. 35 r.z.'), $myVariable); echo $myVariable2;

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.0150.00018.31
8.3.50.0150.00521.15
8.3.40.0040.01218.66
8.3.30.0100.00319.01
8.3.20.0040.00420.16
8.3.10.0080.00023.66
8.3.00.0030.00619.38
8.2.180.0070.00716.63
8.2.170.0070.01422.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.24
8.2.110.0070.00322.24
8.2.100.0070.00417.75
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0090.00017.63
8.2.60.0030.00517.78
8.2.50.0000.00818.07
8.2.40.0040.00419.95
8.2.30.0070.00017.98
8.2.20.0070.00017.61
8.2.10.0040.00418.11
8.2.00.0050.00317.71
8.1.280.0030.01025.92
8.1.270.0040.01124.01
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00023.91
8.1.230.0080.00419.14
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0070.00317.10
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0050.00318.55
8.1.160.0000.00721.93
8.1.150.0040.00418.81
8.1.140.0040.00417.32
8.1.130.0000.00717.82
8.1.120.0050.00317.41
8.1.110.0000.00717.22
8.1.100.0000.00717.35
8.1.90.0050.00317.34
8.1.80.0030.00317.28
8.1.70.0000.00817.39
8.1.60.0030.00617.43
8.1.50.0030.00617.43
8.1.40.0080.00017.48
8.1.30.0000.00817.65
8.1.20.0040.00417.55
8.1.10.0040.00417.51
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.35
8.0.270.0030.00317.11
8.0.260.0030.00317.17
8.0.250.0070.00016.97
8.0.240.0030.00316.99
8.0.230.0040.00416.78
8.0.220.0030.00316.79
8.0.210.0000.00616.71
8.0.200.0000.00716.89
8.0.190.0000.00716.86
8.0.180.0040.00416.86
8.0.170.0040.00416.86
8.0.160.0030.00316.78
8.0.150.0050.00216.72
8.0.140.0030.00516.77
8.0.130.0030.00313.29
8.0.120.0000.00816.69
8.0.110.0070.00016.72
8.0.100.0030.00616.67
8.0.90.0000.00916.81
8.0.80.0070.01416.87
8.0.70.0070.00016.71
8.0.60.0030.00516.71
8.0.50.0080.00016.62
8.0.30.0120.00616.92
8.0.20.0120.01117.40
8.0.10.0040.00417.01
8.0.00.0110.00616.75
7.4.330.0000.00515.09
7.4.320.0000.00716.36
7.4.300.0030.00316.52
7.4.290.0070.00016.44
7.4.280.0090.00016.52
7.4.270.0030.00316.54
7.4.260.0070.00016.54
7.4.250.0080.00016.33
7.4.240.0030.00316.43
7.4.230.0000.00716.23
7.4.220.0140.00616.51
7.4.210.0030.01016.40
7.4.200.0070.00016.18
7.4.160.0130.01016.45
7.4.150.0120.00617.40
7.4.140.0050.01517.86
7.4.130.0040.01416.36
7.4.120.0080.00916.49
7.4.110.0090.00916.46
7.4.100.0080.01516.40
7.4.90.0090.00916.36
7.4.80.0030.01819.39
7.4.70.0130.00716.42
7.4.60.0060.01016.29
7.4.50.0030.00616.46
7.4.40.0090.00616.38
7.4.30.0100.01016.50
7.4.00.0050.01214.71
7.3.330.0030.00313.04
7.3.320.0020.00213.00
7.3.310.0000.00716.10
7.3.300.0070.00016.15
7.3.290.0050.01116.20
7.3.280.0040.01316.22
7.3.270.0060.01317.40
7.3.260.0060.01016.15
7.3.250.0120.00516.42
7.3.240.0170.00316.42
7.3.230.0090.00916.39
7.3.210.0090.00616.36
7.3.200.0090.00919.39
7.3.190.0170.00716.20
7.3.180.0110.00516.24
7.3.170.0130.00616.44
7.3.160.0060.01016.36
7.3.120.0020.01514.60
7.3.110.0030.00814.67
7.3.100.0060.01014.52
7.3.90.0080.00214.68
7.3.80.0080.00914.63
7.3.70.0050.00814.71
7.3.60.0050.00914.38
7.3.50.0090.00514.49
7.3.40.0070.00714.66
7.3.30.0080.00614.69
7.3.20.0080.00716.48
7.3.10.0110.00516.34
7.3.00.0020.01016.51
7.2.330.0130.00316.59
7.2.320.0070.01016.63
7.2.310.0120.00416.71
7.2.300.0070.01016.47
7.2.290.0120.00416.31
7.2.250.0030.01315.03
7.2.240.0090.00914.99
7.2.230.0090.00614.88
7.2.220.0030.00914.85
7.2.210.0050.01014.94
7.2.200.0070.00715.04
7.2.190.0000.01414.88
7.2.180.0070.00914.88
7.2.170.0100.00514.95
7.2.160.0060.00914.84
7.2.150.0060.01216.52
7.2.140.0070.00316.73
7.2.130.0060.00916.87
7.2.120.0070.01116.86
7.2.110.0090.00616.85
7.2.100.0090.00616.93
7.2.90.0030.01416.95
7.2.80.0080.00816.52
7.2.70.0080.00816.62
7.2.60.0040.01016.92
7.2.50.0040.01116.84
7.2.40.0060.00916.95
7.2.30.0110.00716.96
7.2.20.0040.01416.80
7.2.10.0100.00716.66
7.2.00.0080.00918.00
7.1.330.0100.00515.56
7.1.320.0030.00815.78
7.1.310.0070.00715.92
7.1.300.0050.00615.65
7.1.290.0050.00915.63
7.1.280.0040.00915.77
7.1.270.0020.00815.58
7.1.260.0070.00815.91
7.1.250.0040.01215.50
7.1.200.0030.00615.81
7.1.100.0840.01015.99
7.1.70.0030.00517.04
7.1.60.0160.00719.11
7.1.50.0190.01016.68
7.1.00.0070.07322.44
7.0.200.0000.01016.70
7.0.140.0030.06722.00
7.0.60.0070.08719.90
7.0.50.0100.08017.86
7.0.40.0070.05020.23
7.0.30.0330.08020.18
7.0.20.0500.06020.09
7.0.10.0130.06720.30
7.0.00.0070.07720.11
5.6.280.0000.07721.06
5.6.210.0070.07720.46
5.6.200.0100.05718.22
5.6.190.0070.09020.43
5.6.180.0030.08320.43
5.6.170.0330.07320.50
5.6.160.0070.04020.50
5.6.150.0000.04318.13
5.6.140.0070.04318.16
5.6.130.0030.08718.21
5.6.120.0030.04021.01
5.6.110.0130.08020.98
5.6.100.0070.07321.03
5.6.90.0070.07320.96
5.6.80.0100.05320.38
5.6.70.3230.04020.27
5.5.350.0100.07020.38
5.5.340.0130.06017.93
5.5.330.0170.06720.21
5.5.320.0270.07320.19
5.5.310.0200.05720.27
5.5.300.0100.05718.03
5.5.290.0100.03317.95
5.5.280.0170.04320.88
5.5.270.0070.07720.95
5.5.260.0100.08320.86
5.5.250.0130.07320.66
5.5.240.0300.06720.25
5.4.450.0800.05719.42
5.4.440.0930.08019.52
5.4.430.0800.07019.09
5.4.420.0630.00019.48
5.4.410.0670.00019.34
5.4.400.0630.00019.33
5.4.390.0630.00019.05
5.4.380.0670.00019.13
5.4.370.0630.00019.04
5.4.360.0600.00019.13
5.4.350.0630.00019.16
5.4.340.0110.04011.97
5.4.320.0090.04812.45
5.4.310.0090.04612.45
5.4.300.0060.04712.45
5.4.290.0080.04712.45
5.4.280.0080.04812.35
5.4.270.0040.04612.35
5.4.260.0070.05212.34
5.4.250.0100.04912.35
5.4.240.0080.04212.34
5.4.230.0060.03812.34
5.4.220.0050.03712.34
5.4.210.0030.04112.34
5.4.200.0080.04012.34
5.4.190.0040.04312.34
5.4.180.0110.03612.33
5.4.170.0120.04412.34
5.4.160.0120.05112.34
5.4.150.0080.04612.34
5.4.140.0100.05612.02
5.4.130.0100.04512.01
5.4.120.0110.04711.96
5.4.110.0040.05111.96
5.4.100.0080.04511.97
5.4.90.0100.04711.96
5.4.80.0080.05111.96
5.4.70.0110.04211.96
5.4.60.0080.04511.96
5.4.50.0110.05611.96
5.4.40.0100.04411.95
5.4.30.0090.08211.95
5.4.20.0060.05011.95
5.4.10.0070.04811.95
5.4.00.0060.05011.43
5.3.290.0100.05112.80
5.3.280.0050.05112.71
5.3.270.0090.05112.72
5.3.260.0110.04912.72
5.3.250.0090.05412.72
5.3.240.0120.05212.72
5.3.230.0110.05012.71
5.3.220.0150.05812.68
5.3.210.0130.10612.68
5.3.200.0130.06512.68
5.3.190.0080.04812.68
5.3.180.0140.05212.67
5.3.170.0080.05712.67
5.3.160.0090.05212.67
5.3.150.0090.05312.67
5.3.140.0120.05412.66
5.3.130.0160.05412.65
5.3.120.0080.05912.66
5.3.110.0110.05212.66
5.3.100.0090.05012.12
5.3.90.0100.04812.08
5.3.80.0020.04612.08
5.3.70.0080.04312.07
5.3.60.0070.03912.07
5.3.50.0090.03912.00
5.3.40.0080.03912.00
5.3.30.0050.04211.95
5.3.20.0080.03711.72
5.3.10.0070.03611.69
5.3.00.0070.04611.67
5.2.170.0050.0319.18
5.2.160.0070.0279.18
5.2.150.0090.0299.18
5.2.140.0070.0309.18
5.2.130.0080.0309.14
5.2.120.0040.0369.13
5.2.110.0070.0329.14
5.2.100.0030.0329.14
5.2.90.0050.0299.14
5.2.80.0040.0319.14
5.2.70.0030.0339.14
5.2.60.0040.0339.09
5.2.50.0020.0359.05
5.2.40.0050.0309.04
5.2.30.0060.0319.01
5.2.20.0090.0299.00
5.2.10.0070.0328.93
5.2.00.0050.0358.79
5.1.60.0060.0318.08
5.1.50.0050.0298.07
5.1.40.0050.0268.05
5.1.30.0060.0308.41
5.1.20.0050.0298.43
5.1.10.0040.0288.15
5.1.00.0030.0278.15
5.0.50.0030.0226.63
5.0.40.0050.0196.49
5.0.30.0030.0366.30
5.0.20.0030.0226.27
5.0.10.0040.0196.24
5.0.00.0030.0326.23
4.4.90.0030.0184.78
4.4.80.0040.0164.75
4.4.70.0030.0174.75
4.4.60.0020.0184.75
4.4.50.0010.0174.77
4.4.40.0030.0264.71
4.4.30.0050.0164.76
4.4.20.0030.0174.84
4.4.10.0020.0194.85
4.4.00.0030.0244.75
4.3.110.0050.0134.67
4.3.100.0020.0164.67
4.3.90.0020.0144.63
4.3.80.0040.0224.58
4.3.70.0050.0144.63
4.3.60.0050.0124.63
4.3.50.0040.0144.62
4.3.40.0060.0214.53
4.3.30.0030.0193.30
4.3.20.0020.0213.27
4.3.10.0040.0193.23
4.3.00.0100.0206.70

preferences:
39.95 ms | 401 KiB | 5 Q