3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller { public function showAction($request, $_format = 'html') { echo 'foo'; } } class MyController extends Controller { public function showAction($request) { parent::showAction($request, 'html'); } } $c = new MyController(); $c->showAction('request', 'json');

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.40.0090.00618.44
8.3.30.0100.00718.96
8.3.20.0050.00220.34
8.3.10.0070.00320.53
8.3.00.0030.00619.25
8.2.170.0100.00722.96
8.2.160.0180.00420.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.10
8.2.110.0000.01122.22
8.2.100.0060.00617.53
8.2.90.0000.00817.60
8.2.80.0050.00317.97
8.2.70.0000.00817.80
8.2.60.0040.00417.91
8.2.50.0040.00419.23
8.2.40.0000.00820.59
8.2.30.0040.00419.44
8.2.20.0050.00217.43
8.2.10.0070.00017.81
8.2.00.0040.00417.43
8.1.270.0050.00323.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00923.92
8.1.230.0040.00819.23
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0050.00517.10
8.1.190.0030.00617.10
8.1.180.0090.00018.10
8.1.170.0080.00018.38
8.1.160.0070.00021.82
8.1.150.0070.00018.70
8.1.140.0000.00717.20
8.1.130.0050.00317.75
8.1.120.0000.00717.40
8.1.110.0000.00717.36
8.1.100.0030.00517.40
8.1.90.0000.00717.34
8.1.80.0000.00717.32
8.1.70.0000.00817.27
8.1.60.0090.00017.35
8.1.50.0030.00517.43
8.1.40.0050.00317.38
8.1.30.0030.00617.52
8.1.20.0000.00717.44
8.1.10.0050.00317.39
8.1.00.0030.00617.20
8.0.300.0000.00819.77
8.0.290.0030.00616.58
8.0.280.0040.00418.21
8.0.270.0070.00017.19
8.0.260.0040.00417.13
8.0.250.0030.00316.76
8.0.240.0000.00816.81
8.0.230.0040.00316.80
8.0.220.0030.00316.70
8.0.210.0000.00716.82
8.0.200.0040.00416.86
8.0.190.0000.00816.86
8.0.180.0000.00716.77
8.0.170.0050.00316.88
8.0.160.0040.00416.72
8.0.150.0070.00016.68
8.0.140.0040.00416.78
8.0.130.0050.00013.18
8.0.120.0040.00416.87
8.0.110.0040.00416.89
8.0.100.0000.00716.87
8.0.90.0030.00616.69
8.0.80.0060.00916.85
8.0.70.0040.00416.94
8.0.60.0000.00716.70
8.0.50.0000.00816.83
8.0.30.0130.00617.05
8.0.20.0160.00917.40
8.0.10.0080.00016.98
8.0.00.0080.01016.65
7.4.330.0050.00015.00
7.4.320.0040.00416.58
7.4.300.0000.00716.43
7.4.290.0080.00016.55
7.4.280.0000.00716.59
7.4.270.0030.00316.61
7.4.260.0000.00716.47
7.4.250.0040.00416.57
7.4.240.0020.00516.57
7.4.230.0040.00416.69
7.4.220.0150.00816.55
7.4.210.0070.01016.64
7.4.200.0030.00316.58
7.4.160.0040.01216.46
7.4.150.0100.01017.40
7.4.140.0090.00917.86
7.4.130.0110.00716.51
7.4.120.0100.00916.48
7.4.110.0120.01016.33
7.4.100.0170.00016.61
7.4.90.0150.00316.52
7.4.80.0070.01119.39
7.4.70.0070.01016.48
7.4.60.0060.00916.43
7.4.50.0040.00416.47
7.4.40.0070.01016.57
7.4.30.0030.01316.41
7.4.10.0120.00314.86
7.4.00.0020.01615.09
7.3.330.0050.00013.29
7.3.320.0020.00213.25
7.3.310.0080.00016.28
7.3.300.0070.00016.25
7.3.290.0060.00916.28
7.3.280.0080.00916.32
7.3.270.0110.00717.40
7.3.260.0060.01016.31
7.3.250.0080.01316.34
7.3.240.0110.00616.25
7.3.230.0100.00616.39
7.3.210.0090.00916.32
7.3.200.0100.01019.39
7.3.190.0110.01116.31
7.3.180.0000.01716.21
7.3.170.0040.01216.31
7.3.160.0150.00016.32
7.3.130.0080.01214.78
7.3.120.0090.00614.91
7.3.110.0000.01614.82
7.3.100.0040.01114.75
7.3.90.0000.01514.72
7.3.80.0030.00914.98
7.3.70.0090.00014.61
7.3.60.0030.01014.76
7.3.50.0030.01314.73
7.3.40.0110.00414.65
7.3.30.0040.00414.73
7.3.20.0120.00316.72
7.3.10.0080.00516.52
7.3.00.0050.00916.54
7.2.330.0130.00316.66
7.2.320.0130.00316.68
7.2.310.0030.01416.39
7.2.300.0070.01016.61
7.2.290.0100.01016.29
7.2.260.0100.01015.02
7.2.250.0000.01515.11
7.2.240.0060.00914.89
7.2.230.0000.01715.19
7.2.220.0060.00315.21
7.2.210.0130.00315.12
7.2.200.0030.01014.64
7.2.190.0040.00414.98
7.2.180.0000.00815.03
7.2.170.0000.01115.18
7.2.160.0040.01114.90
7.2.150.0030.00716.76
7.2.140.0090.00616.76
7.2.130.0060.01116.86
7.2.120.0070.00616.79
7.2.110.0070.00316.88
7.2.100.0050.00816.74
7.2.90.0070.00916.87
7.2.80.0030.00816.67
7.2.70.0060.00916.76
7.2.60.0030.01016.68
7.2.50.0080.00516.89
7.2.40.0070.00916.79
7.2.30.0030.01416.96
7.2.20.0030.01116.71
7.2.10.0100.00516.82
7.2.00.0100.00317.54
7.1.330.0110.00415.78
7.1.320.0030.01115.45
7.1.310.0030.01415.50
7.1.300.0030.00615.54
7.1.290.0040.00715.64
7.1.280.0000.00815.58
7.1.270.0070.00715.85
7.1.260.0110.00015.42
7.1.250.0090.00315.53
7.1.240.0020.01015.65
7.1.230.0030.00615.58
7.1.220.0050.00915.55
7.1.210.0070.00715.85
7.1.200.0050.00815.64
7.1.190.0040.00715.76
7.1.180.0090.00615.60
7.1.170.0050.00615.71
7.1.160.0100.00315.43
7.1.150.0020.01015.57
7.1.140.0050.00715.61
7.1.130.0090.00515.63
7.1.120.0030.00615.51
7.1.110.0060.00515.67
7.1.100.0030.00816.43
7.1.90.0030.01415.58
7.1.80.0050.01015.66
7.1.70.0030.00916.17
7.1.60.0060.01117.01
7.1.50.0080.00615.98
7.1.40.0030.00815.61
7.1.30.0080.00515.62
7.1.20.0020.00815.50
7.1.10.0030.01115.49
7.1.00.0040.03017.99
7.0.330.0040.00615.22
7.0.320.0050.00815.33
7.0.310.0020.00915.39
7.0.300.0080.00515.47
7.0.290.0080.00615.31
7.0.280.0090.00515.31
7.0.270.0030.01015.20
7.0.260.0070.00815.31
7.0.250.0080.00515.36
7.0.240.0090.00515.39
7.0.230.0060.00815.38
7.0.220.0090.00815.37
7.0.210.0060.00515.12
7.0.200.0030.00815.75
7.0.190.0030.00915.40
7.0.180.0060.00815.33
7.0.170.0050.00515.37
7.0.160.0050.00615.31
7.0.150.0020.01215.12
7.0.140.0050.02817.57
7.0.130.0070.00515.48
7.0.120.0060.00915.37
7.0.110.0020.01015.18
7.0.100.0100.00715.41
7.0.90.0020.01215.14
7.0.80.0040.00715.31
7.0.70.0070.01015.18
7.0.60.0040.03416.79
7.0.50.0060.01716.27
7.0.40.0060.03415.69
7.0.30.0130.01815.61
7.0.20.0150.02815.67
7.0.10.0040.02815.59
7.0.00.0090.02915.52
5.6.400.0090.00014.13
5.6.390.0100.00314.22
5.6.380.0060.00614.46
5.6.370.0050.00514.17
5.6.360.0070.00614.03
5.6.350.0070.00614.38
5.6.340.0070.00714.36
5.6.330.0030.00814.17
5.6.320.0060.00314.25
5.6.310.0030.00914.30
5.6.300.0060.00614.27
5.6.290.0030.00814.36
5.6.280.0070.02816.33
5.6.270.0060.00614.46
5.6.260.0020.01114.22
5.6.250.0030.00914.42
5.6.240.0050.00814.37
5.6.230.0000.01014.07
5.6.220.0040.01114.39
5.6.210.0030.03516.42
5.6.200.0030.02415.57
5.6.190.0060.01816.15
5.6.180.0100.02016.27
5.6.170.0090.02416.31
5.6.160.0040.02916.30
5.6.150.0070.02815.54
5.6.140.0030.03515.60
5.6.130.0050.02715.48
5.6.120.0070.02816.48
5.6.110.0070.03216.54
5.6.100.0110.02216.48
5.6.90.0030.02516.60
5.6.80.0050.02916.20
5.6.70.0080.00414.04
5.6.60.0030.01214.19
5.6.50.0020.01314.06
5.6.40.0040.00814.12
5.6.30.0040.00714.27
5.6.20.0070.00514.17
5.6.10.0050.00914.04
5.6.00.0050.00514.08
5.5.380.0070.00912.85
5.5.370.0030.00812.80
5.5.360.0050.00812.68
5.5.350.0100.01815.09
5.5.340.0030.02914.39
5.5.330.0080.02315.22
5.5.320.0050.02815.11
5.5.310.0110.01915.13
5.5.300.0040.03314.36
5.5.290.0040.03214.40
5.5.280.0040.02415.15
5.5.270.0080.01715.27
5.5.260.0040.03215.42
5.5.250.0050.03415.22
5.5.240.0010.03414.99
5.5.230.0040.00912.39
5.5.220.0070.00312.58
5.5.210.0050.00812.44
5.5.200.0050.00712.54
5.5.190.0070.00512.52
5.5.180.0090.00612.62
5.5.170.0080.00612.53
5.5.160.0050.00512.61
5.5.150.0040.00512.56
5.5.140.0080.00512.55
5.5.130.0060.00712.12
5.5.120.0020.00912.68
5.5.110.0080.00612.27
5.5.100.0020.01012.57
5.5.90.0030.00512.68
5.5.80.0040.00912.54
5.5.70.0060.00412.52
5.5.60.0070.00512.52
5.5.50.0080.00412.27
5.5.40.0020.01212.43
5.5.30.0050.00712.57
5.5.20.0020.00712.58
5.5.10.0060.00612.60
5.5.00.0050.00512.50
5.4.450.0110.02313.88
5.4.440.0070.02613.68
5.4.430.0080.02413.87
5.4.420.0060.02513.76
5.4.410.0150.01713.82
5.4.400.0220.02613.79
5.4.390.0190.02313.66
5.4.380.0070.02613.39
5.4.370.0100.02213.31
5.4.360.0080.02013.49
5.4.350.0060.02313.56
5.4.340.0050.02313.50
5.4.330.0030.00610.96
5.4.320.0030.01711.57
5.4.310.0020.02211.46
5.4.300.0040.01511.53
5.4.290.0050.01711.37
5.4.280.0060.01711.53
5.4.270.0050.01711.31
5.4.260.0030.01611.32
5.4.250.0090.01211.45
5.4.240.0040.01711.47
5.4.230.0080.01411.46
5.4.220.0050.02011.31
5.4.210.0050.01611.35
5.4.200.0030.01911.36
5.4.190.0070.01411.48
5.4.180.0060.01511.43
5.4.170.0040.02011.32
5.4.160.0080.01611.45
5.4.150.0030.01711.26
5.4.140.0070.01611.32
5.4.130.0030.01911.28
5.4.120.0020.02011.42
5.4.110.0070.01411.35
5.4.100.0060.01611.29
5.4.90.0050.01811.31
5.4.80.0050.01511.39
5.4.70.0050.01711.29
5.4.60.0040.01811.30
5.4.50.0040.01611.24
5.4.40.0060.01511.28
5.4.30.0060.01611.35
5.4.20.0060.01511.31
5.4.10.0070.01411.37
5.4.00.0040.01711.05
5.3.290.0020.02511.63
5.3.280.0060.02211.63
5.3.270.0050.02511.68
5.3.260.0050.02211.61
5.3.250.0060.02111.65
5.3.240.0040.02311.61
5.3.230.0040.02311.64
5.3.220.0030.02411.58
5.3.210.0060.02111.57
5.3.200.0050.02111.59
5.3.190.0050.02511.62
5.3.180.0050.02311.56
5.3.170.0060.02111.59
5.3.160.0050.02111.70
5.3.150.0080.02111.65
5.3.140.0050.02211.62
5.3.130.0110.01811.60
5.3.120.0060.02211.54
5.3.110.0020.02611.65
5.3.100.0050.02211.26
5.3.90.0040.02311.37
5.3.80.0040.02311.30
5.3.70.0070.02411.30
5.3.60.0060.01911.29
5.3.50.0040.02011.28
5.3.40.0050.02211.29
5.3.30.0090.01711.14
5.3.20.0030.02311.17
5.3.10.0070.01810.94
5.3.00.0060.02011.04
5.2.170.0050.0259.42
5.2.160.0020.0219.45
5.2.150.0060.0159.38
5.2.140.0040.0189.37
5.2.130.0020.0199.30
5.2.120.0040.0179.38
5.2.110.0060.0189.30
5.2.100.0050.0169.30
5.2.90.0040.0189.35
5.2.80.0050.0189.30
5.2.70.0040.0159.33
5.2.60.0080.0149.28
5.2.50.0050.0179.26
5.2.40.0050.0169.27
5.2.30.0070.0159.26
5.2.20.0080.0169.23
5.2.10.0060.0159.18
5.2.00.0070.0149.12
5.1.60.0060.0138.76
5.1.50.0030.0148.76
5.1.40.0040.0148.75
5.1.30.0040.0158.92
5.1.20.0020.0188.93
5.1.10.0050.0138.79
5.1.00.0040.0168.79
5.0.50.0020.0138.03
5.0.40.0050.0097.96
5.0.30.0030.0197.87
5.0.20.0040.0127.85
5.0.10.0040.0127.84
5.0.00.0030.0187.84
4.4.90.0020.0107.10
4.4.80.0020.0107.09
4.4.70.0010.0107.09
4.4.60.0020.0107.09
4.4.50.0020.0107.10
4.4.40.0020.0157.06
4.4.30.0040.0097.09
4.4.20.0050.0087.13
4.4.10.0020.0107.13
4.4.00.0040.0127.09
4.3.110.0030.0097.04
4.3.100.0030.0097.04
4.3.90.0020.0107.03
4.3.80.0020.0157.00
4.3.70.0030.0097.03
4.3.60.0020.0097.02
4.3.50.0020.0117.03
4.3.40.0040.0136.98
4.3.30.0030.0106.36
4.3.20.0030.0106.35
4.3.10.0030.0076.33
4.3.00.0020.0158.65

preferences:
48.88 ms | 400 KiB | 5 Q