3v4l.org

run code in 300+ PHP versions simultaneously
<?php function conf_path() { static $path; if($path != null) { return $path; } $path = '../sites/swissquote.eu.fx'; return $path; } $time = microtime(true); $i=0; while($i < 60000) { $i++; str_replace(dirname(conf_path()).'/', '', conf_path()); } $time = microtime(true) - $time; echo 'str_replace() took ' . number_format($time, 3) . ' seconds';

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.0.120.0060.02213.46
8.0.110.0100.01713.32
8.0.100.0040.02413.40
8.0.90.0040.02413.36
8.0.80.0040.02213.36
8.0.70.0070.02113.34
8.0.60.0060.01913.27
8.0.50.0090.01813.30
8.0.30.0100.01613.38
8.0.20.0000.02713.45
8.0.10.0090.01613.39
8.0.00.0040.02213.46
7.4.250.0120.01513.33
7.4.240.0090.01913.25
7.4.230.0030.02513.34
7.4.220.0070.02013.40
7.4.210.0060.02113.33
7.4.200.0030.02413.28
7.4.190.0040.02213.17
7.4.180.0070.02013.41
7.4.160.0090.01713.40
7.4.150.0000.02613.29
7.4.140.0090.01813.29
7.4.130.0040.02313.21
7.4.120.0000.02813.28
7.4.110.0090.01813.16
7.4.100.0060.02013.32
7.4.90.0030.02413.21
7.4.80.0110.01713.27
7.4.70.0040.02213.24
7.4.60.0060.02113.32
7.4.50.0060.02113.21
7.4.40.0060.02113.32
7.4.30.0030.02413.23
7.4.20.0060.02013.18
7.4.10.0070.02013.27
7.4.00.0090.03014.16
7.3.310.0070.01713.43
7.3.300.0040.02113.29
7.3.290.0060.02013.30
7.3.280.0030.02313.18
7.3.270.0100.01713.27
7.3.260.0030.02113.36
7.3.250.0100.01913.18
7.3.240.0030.02413.32
7.3.230.0070.02013.42
7.3.220.0070.02013.38
7.3.210.0110.01413.28
7.3.200.0080.01913.13
7.3.190.0070.02113.22
7.3.180.0000.02413.41
7.3.170.0000.02613.33
7.3.160.0060.02113.15
7.3.150.0090.01813.30
7.3.140.0060.01913.13
7.3.130.0000.02713.30
7.3.120.0050.03414.08
7.3.110.0070.03214.05
7.3.100.0020.03113.98
7.3.90.0070.02514.08
7.3.80.0070.03314.05
7.3.70.0040.03313.99
7.3.60.0060.02414.23
7.3.50.0020.03014.12
7.3.40.0000.03213.96
7.3.30.0020.02614.12
7.3.20.0050.02616.04
7.3.10.0070.02716.15
7.3.00.0060.02516.23
7.2.340.0160.01913.34
7.2.330.0090.02513.27
7.2.320.0150.01813.17
7.2.310.0140.01913.30
7.2.300.0070.02413.17
7.2.290.0040.03013.31
7.2.280.0140.01913.43
7.2.270.0100.02313.51
7.2.260.0100.02113.39
7.2.250.0100.03614.12
7.2.240.0150.02614.13
7.2.230.0090.02814.29
7.2.220.0100.03014.30
7.2.210.0090.03514.15
7.2.200.0070.02814.30
7.2.190.0070.02914.13
7.2.180.0060.03614.17
7.2.170.0130.02714.27
7.2.160.0020.03214.09
7.2.150.0050.03316.28
7.2.140.0090.02816.25
7.2.130.0080.03116.49
7.2.120.0030.03516.40
7.2.110.0050.03316.42
7.2.100.0080.03116.46
7.2.90.0070.03016.34
7.2.80.0080.02716.43
7.2.70.0090.03416.45
7.2.60.0070.03116.37
7.2.50.0060.02916.54
7.2.40.0100.02516.39
7.2.30.0080.02916.38
7.2.20.0070.02716.45
7.2.10.0080.03216.50
7.2.00.0040.03317.04
7.1.330.0020.04515.08
7.1.320.0020.04415.02
7.1.310.0050.04214.99
7.1.300.0080.03315.15
7.1.290.0100.03015.05
7.1.280.0070.03015.11
7.1.270.0090.03115.06
7.1.260.0020.03414.95
7.1.250.0070.03515.38
7.1.240.0100.03015.14
7.1.230.0070.04015.13
7.1.220.0050.03515.03
7.1.210.0090.03015.17
7.1.200.0050.03615.17
7.1.190.0030.03314.92
7.1.180.0080.03315.16
7.1.170.0100.03115.18
7.1.160.0050.04115.12
7.1.150.0050.03314.94
7.1.140.0070.03415.16
7.1.130.0050.03915.03
7.1.120.0060.03415.01
7.1.110.0000.03814.98
7.1.100.0040.03515.02
7.1.90.0030.03915.02
7.1.80.0070.03114.99
7.1.70.0080.03115.61
7.1.60.0080.03816.49
7.1.50.0050.04015.82
7.1.40.0000.03815.04
7.1.30.0080.03215.21
7.1.20.0040.03514.89
7.1.10.0050.03215.10
7.1.00.0010.04317.45
7.0.330.0110.03314.76
7.0.320.0110.03114.95
7.0.310.0100.03414.75
7.0.300.0080.04014.79
7.0.290.0080.03714.75
7.0.280.0070.03314.81
7.0.270.0080.03814.74
7.0.260.0030.04514.82
7.0.250.0100.03315.00
7.0.240.0070.03514.83
7.0.230.0030.04014.85
7.0.220.0080.03514.89
7.0.210.0070.03614.86
7.0.200.0010.04115.58
7.0.190.0100.04014.82
7.0.180.0100.03214.91
7.0.170.0070.03614.94
7.0.160.0020.04014.86
7.0.150.0050.03714.91
7.0.140.0090.05417.27
7.0.130.0040.03715.02
7.0.120.0030.03914.89
7.0.110.0080.03314.92
7.0.100.0050.04816.58
7.0.90.0110.05716.45
7.0.80.0130.05216.52
7.0.70.0100.05316.54
7.0.60.0120.04416.54
7.0.50.0120.04916.58
7.0.40.0070.06416.05
7.0.30.0050.04715.89
7.0.20.0060.05015.93
7.0.10.0080.05715.92
7.0.00.0020.05915.93
5.6.400.0050.05813.60
5.6.390.0060.06413.50
5.6.380.0070.05513.71
5.6.370.0050.07013.38
5.6.360.0030.07013.42
5.6.350.0080.05213.64
5.6.340.0120.05513.77
5.6.330.0030.06813.64
5.6.320.0080.05213.37
5.6.310.0040.05913.75
5.6.300.0090.06213.50
5.6.290.0060.06313.68
5.6.280.0020.08816.02
5.6.270.0080.05213.50
5.6.260.0050.06113.37
5.6.250.0080.07815.84
5.6.240.0120.07715.96
5.6.230.0060.08015.99
5.6.220.0080.07915.91
5.6.210.0100.07616.00
5.6.200.0060.07916.15
5.6.190.0070.08216.01
5.6.180.0110.06415.99
5.6.170.0080.07516.04
5.6.160.0110.08116.09
5.6.150.0100.07116.12
5.6.140.0090.07316.04
5.6.130.0070.07716.13
5.6.120.0120.07716.05
5.6.110.0070.08515.99
5.6.100.0040.08415.93
5.6.90.0120.07916.09
5.6.80.0010.07915.75
5.6.70.0080.07415.91
5.6.60.0120.07515.85
5.6.50.0070.07015.80
5.6.40.0090.08515.78
5.6.30.0060.06815.82
5.6.20.0060.07215.69
5.6.10.0060.05815.80
5.6.00.0040.07115.84
5.5.380.0030.08715.99
5.5.370.0080.07815.74
5.5.360.0050.07915.89
5.5.350.0030.07115.87
5.5.340.0050.08315.99
5.5.330.0120.07015.97
5.5.320.0080.07715.91
5.5.310.0060.06815.98
5.5.300.0100.07415.93
5.5.290.0080.07116.05
5.5.280.0070.07815.93
5.5.270.0120.07315.98
5.5.260.0060.07415.91
5.5.250.0050.06415.94
5.5.240.0060.08515.84
5.5.230.0090.07715.73
5.5.220.0050.06115.67
5.5.210.0080.06015.75
5.5.200.0060.06915.67
5.5.190.0020.07615.70
5.5.180.0020.08315.70
5.5.170.0090.05813.42
5.5.160.0040.09315.83
5.5.150.0050.07315.81
5.5.140.0040.07615.57
5.5.130.0070.08515.66
5.5.120.0070.06115.64
5.5.110.0090.07515.71
5.5.100.0090.06715.75
5.5.90.0060.07815.69
5.5.80.0090.06415.59
5.5.70.0050.09015.65
5.5.60.0090.06915.62
5.5.50.0040.07715.62
5.5.40.0110.06615.72
5.5.30.0070.06615.73
5.5.20.0070.07115.79
5.5.10.0050.06815.63
5.5.00.0040.06615.63
5.4.450.0060.08615.04
5.4.440.0090.07714.97
5.4.430.0080.08614.92
5.4.420.0100.07414.90
5.4.410.0040.07814.99
5.4.400.0090.08214.72
5.4.390.0100.07414.82
5.4.380.0100.06814.79
5.4.370.0030.07414.85
5.4.360.0060.07114.79
5.4.350.0100.07514.77
5.4.340.0020.06914.90
5.4.330.0080.05412.67
5.4.320.0040.08314.77
5.4.310.0070.06114.84
5.4.300.0070.07414.86
5.4.290.0030.06914.92
5.4.280.0040.08114.84
5.4.270.0030.06314.77
5.4.260.0040.08014.84
5.4.250.0080.07214.80
5.4.240.0030.07714.92
5.4.230.0080.08014.74
5.4.220.0070.06814.82
5.4.210.0090.06014.72
5.4.200.0040.07414.72
5.4.190.0080.06414.72
5.4.180.0100.08014.74
5.4.170.0060.07414.78
5.4.160.0080.07214.70
5.4.150.0030.07814.82
5.4.140.0030.06113.89
5.4.130.0090.07413.96
5.4.120.0050.08113.93
5.4.110.0040.07113.97
5.4.100.0050.07913.99
5.4.90.0060.07913.91
5.4.80.0070.07213.99
5.4.70.0050.07414.02
5.4.60.0050.08514.08
5.4.50.0040.07414.02
5.4.40.0040.08113.92
5.4.30.0060.06213.94
5.4.20.0050.05914.04
5.4.10.0080.07713.98
5.4.00.0060.07013.70
5.3.290.0050.08213.55
5.3.280.0030.08713.46
5.3.270.0040.10513.47
5.3.260.0050.10913.44
5.3.250.0060.08313.53
5.3.240.0090.10513.50
5.3.230.0080.09613.49
5.3.220.0050.10713.38
5.3.210.0050.10413.36
5.3.200.0090.09413.40
5.3.190.0070.08313.40
5.3.180.0100.09713.50
5.3.170.0030.10413.45
5.3.160.0080.07813.48
5.3.150.0050.09113.50
5.3.140.0060.08213.47
5.3.130.0050.08013.43
5.3.120.0110.07413.40
5.3.110.0050.09213.45
5.3.100.0080.10013.34
5.3.90.0040.09813.24
5.3.80.0020.10913.22
5.3.70.0060.10613.22
5.3.60.0030.10513.21
5.3.50.0080.09513.20
5.3.40.0040.10613.29
5.3.30.0080.08813.25
5.3.20.0050.10013.13
5.3.10.0050.08913.08
5.3.00.0050.08813.04
5.2.170.0130.09511.85
5.2.160.0080.08511.97
5.2.150.0030.10611.92
5.2.140.0020.08311.83
5.2.130.0050.10811.83
5.2.120.0070.11111.95
5.2.110.0050.10011.98
5.2.100.0050.08711.85
5.2.90.0050.08911.92
5.2.80.0030.10311.78
5.2.70.0020.08011.88
5.2.60.0070.10311.79
5.2.50.0060.10711.88
5.2.40.0000.09011.82
5.2.30.0080.10511.79
5.2.20.0050.11211.82
5.2.10.0100.10411.82
5.2.00.0100.09311.71
5.1.60.0040.10211.45
5.1.50.0050.07611.42
5.1.40.0010.07811.52
5.1.30.0050.08111.47
5.1.20.0030.10711.37
5.1.10.0050.08711.36
5.1.00.0000.07611.32
5.0.50.0030.09711.04
5.0.40.0200.08511.04
5.0.30.0030.13011.04
5.0.20.0080.10911.04
5.0.10.0050.08611.04
5.0.00.0000.14111.04
4.4.90.0030.09611.04
4.4.80.0000.12811.04
4.4.70.0030.11911.04
4.4.60.0020.10711.04
4.4.50.0090.11111.04
4.4.40.0020.11611.04
4.4.30.0010.13311.04
4.4.20.0060.13411.04
4.4.10.0060.12711.04
4.4.00.0040.11011.04
4.3.110.0050.11911.04
4.3.100.0050.12211.04
4.3.90.0050.10511.04
4.3.80.0000.13711.04
4.3.70.0030.13111.04
4.3.60.0030.12711.04
4.3.50.0030.12311.04
4.3.40.0010.09611.04
4.3.30.0030.11011.04
4.3.20.0030.11211.04
4.3.10.0050.11511.04
4.3.00.0000.12711.04

preferences:
40.27 ms | 400 KiB | 5 Q