3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public function foobar() { var_dump(get_class()); var_dump(get_called_class()); } } class Derived extends Base { } $derived = new Derived; $derived->foobar();

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.0120.00318.67
8.3.30.0070.00719.09
8.3.20.0050.00220.15
8.3.10.0060.00323.53
8.3.00.0030.00617.80
8.2.170.0110.00422.96
8.2.160.0130.00020.43
8.2.150.0040.00424.18
8.2.140.0170.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00919.11
8.2.110.0040.00422.25
8.2.100.0000.01118.09
8.2.90.0090.00019.09
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0030.00717.80
8.2.50.0090.00018.07
8.2.40.0050.00318.22
8.2.30.0040.00418.25
8.2.20.0030.00617.63
8.2.10.0030.00617.91
8.2.00.0040.00417.62
8.1.270.0000.00923.84
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0070.00322.24
8.1.230.0040.00819.09
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0070.00317.13
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0000.00818.54
8.1.160.0030.00621.96
8.1.150.0050.00218.57
8.1.140.0030.00617.30
8.1.130.0000.00817.70
8.1.120.0000.00817.36
8.1.110.0000.00817.29
8.1.100.0070.00017.38
8.1.90.0030.00517.43
8.1.80.0030.00517.36
8.1.70.0030.00317.26
8.1.60.0030.00517.54
8.1.50.0000.00817.51
8.1.40.0090.00017.41
8.1.30.0030.00517.65
8.1.20.0000.00817.71
8.1.10.0050.00317.50
8.1.00.0040.00417.44
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00318.31
8.0.270.0040.00417.23
8.0.260.0030.00317.22
8.0.250.0000.00716.82
8.0.240.0110.00016.79
8.0.230.0040.00416.84
8.0.220.0070.00016.76
8.0.210.0070.00016.79
8.0.200.0000.00616.89
8.0.190.0040.00416.78
8.0.180.0050.00216.85
8.0.170.0030.00516.77
8.0.160.0000.00716.89
8.0.150.0030.00716.81
8.0.140.0000.00716.84
8.0.130.0060.00013.22
8.0.120.0020.00516.81
8.0.110.0030.00516.88
8.0.100.0070.00016.77
8.0.90.0020.00516.89
8.0.80.0060.00916.78
8.0.70.0000.00716.76
8.0.60.0070.00016.63
8.0.50.0040.00416.78
8.0.30.0100.01117.17
8.0.20.0130.00917.40
8.0.10.0040.00416.95
8.0.00.0050.01216.72
7.4.330.0040.00315.00
7.4.320.0060.00016.34
7.4.300.0030.00316.60
7.4.290.0040.00416.61
7.4.280.0000.00716.44
7.4.270.0000.00716.64
7.4.260.0030.00616.58
7.4.250.0000.00716.32
7.4.240.0060.00116.51
7.4.230.0000.00716.62
7.4.220.0060.01316.51
7.4.210.0040.01116.63
7.4.200.0040.00316.38
7.4.160.0070.00716.58
7.4.150.0120.00617.40
7.4.140.0160.00817.86
7.4.130.0120.00516.50
7.4.120.0120.00416.39
7.4.110.0130.00316.62
7.4.100.0060.01216.56
7.4.90.0080.00816.52
7.4.80.0090.01219.39
7.4.70.0130.00616.56
7.4.60.0160.00516.35
7.4.50.0000.00416.11
7.4.40.0130.01016.49
7.4.30.0070.00716.26
7.4.00.0040.01214.98
7.3.330.0020.00213.09
7.3.320.0000.00513.00
7.3.310.0000.00616.20
7.3.300.0030.00316.15
7.3.290.0070.01416.26
7.3.280.0110.00616.21
7.3.270.0030.01517.40
7.3.260.0110.00816.20
7.3.250.0070.01016.39
7.3.240.0150.00416.22
7.3.230.0120.00616.39
7.3.210.0160.00316.40
7.3.200.0090.00919.39
7.3.190.0130.00316.25
7.3.180.0090.00615.99
7.3.170.0120.00616.54
7.3.160.0120.00316.12
7.3.120.0040.01214.40
7.2.330.0090.00916.31
7.2.320.0110.01116.54
7.2.310.0070.01016.62
7.2.300.0060.01216.59
7.2.290.0090.00916.38
7.2.110.0210.00616.34
7.2.100.0160.00916.37
7.2.90.0160.00916.54
7.2.80.0210.00316.29
7.2.70.0140.01116.67
7.2.60.0180.01116.61
7.2.50.0270.00516.74
7.2.40.0090.01416.50
7.2.30.0180.00316.83
7.2.20.0050.01216.78
7.2.10.0160.00716.81
7.2.00.0150.00417.79
7.1.230.0170.00315.69
7.1.220.0180.00315.73
7.1.210.0180.02115.34
7.1.200.0090.00515.54
7.1.190.0140.00715.73
7.1.180.0000.01815.75
7.1.170.0240.00015.57
7.1.160.0320.00015.70
7.1.150.0200.01315.33
7.1.140.0110.00615.68
7.1.130.0130.01015.50
7.1.120.0180.00315.50
7.1.110.0190.00815.69
7.1.100.0120.00516.89
7.1.90.0120.00815.83
7.1.80.0100.00615.57
7.1.70.0220.00316.37
7.1.60.0180.00717.76
7.1.50.0150.00925.29
7.1.40.0140.00715.94
7.1.30.0190.00015.61
7.1.20.0270.00715.87
7.1.10.0150.00915.64
7.1.00.0060.04319.01
7.0.310.0210.00015.24
7.0.300.0280.00415.05
7.0.290.0100.00715.30
7.0.280.0150.00415.34
7.0.270.0130.00615.12
7.0.260.0170.00615.07
7.0.250.0260.00315.29
7.0.240.0140.00715.40
7.0.230.0280.00015.36
7.0.220.0140.00715.18
7.0.210.0220.00015.48
7.0.200.0130.00516.02
7.0.190.0140.00715.31
7.0.180.0170.00415.30
7.0.170.0160.00615.38
7.0.160.0260.00415.42
7.0.150.0220.00515.19
7.0.140.0130.03618.77
7.0.130.0090.00315.21
7.0.120.0130.00615.27
7.0.110.0120.00615.30
7.0.100.0040.01115.25
7.0.90.0210.00015.40
7.0.80.0280.03017.64
7.0.70.0370.03917.60
7.0.60.0240.03117.55
7.0.50.0180.03017.73
7.0.40.0110.03916.75
7.0.30.0040.04516.79
7.0.20.0110.04216.74
7.0.10.0150.03916.64
7.0.00.0100.04016.74
5.6.380.0160.00014.44
5.6.370.0150.00014.31
5.6.360.0120.01114.02
5.6.350.0070.01113.98
5.6.340.0190.00514.47
5.6.330.0110.01114.41
5.6.320.0160.00414.27
5.6.310.0180.00014.56
5.6.300.0180.00514.42
5.6.290.0180.00014.09
5.6.280.0120.03717.53
5.6.270.0110.00414.09
5.6.260.0100.00214.39
5.6.250.0100.00314.29
5.6.240.0130.00314.48
5.6.230.0050.02917.51
5.6.220.0060.02817.45
5.6.210.0140.03917.44
5.6.200.0050.03017.72
5.6.190.0090.02517.51
5.6.180.0050.02917.69
5.6.170.0050.03217.80
5.6.160.0080.04317.61
5.6.150.0130.02717.69
5.6.140.0030.03417.62
5.6.130.0090.02517.61
5.6.120.0130.04317.80
5.6.110.0100.02717.63
5.6.100.0110.02717.55
5.6.90.0170.03617.75
5.6.80.0110.03617.24
5.6.70.0120.04417.27
5.6.60.0140.02317.23
5.6.50.0110.02917.26
5.6.40.0060.03917.23
5.6.30.0100.04217.39
5.6.20.0120.03717.27
5.6.10.0090.02417.21
5.6.00.0090.02617.28
5.5.380.0130.00312.79
5.5.370.0120.02816.59
5.5.360.0150.03616.62
5.5.350.0050.04416.57
5.5.340.0100.02216.82
5.5.330.0100.04516.76
5.5.320.0080.03016.81
5.5.310.0090.04016.79
5.5.300.0090.02716.85
5.5.290.0060.03316.81
5.5.280.0100.04216.79
5.5.270.0080.04016.76
5.5.260.0080.04016.78
5.5.250.0080.04016.71
5.5.240.0090.03316.46
5.5.230.0110.02316.45
5.5.220.0100.03316.54
5.5.210.0050.02516.53
5.5.200.0040.03116.52
5.5.190.0100.04016.51
5.5.180.0120.02616.47
5.5.170.0090.00814.34
5.5.160.0070.03716.39
5.5.150.0050.02916.45
5.5.140.0050.04316.48
5.5.130.0110.01816.53
5.5.120.0090.03116.43
5.5.110.0050.04116.50
5.5.100.0130.03816.42
5.5.90.0100.02516.42
5.5.80.0070.02816.42
5.5.70.0140.02616.41
5.5.60.0070.02416.46
5.5.50.0080.03816.44
5.5.40.0100.01816.47
5.5.30.0130.03516.43
5.5.20.0100.04016.46
5.5.10.0070.02216.42
5.5.00.0070.03516.40
5.4.450.0050.04816.12
5.4.440.0090.02516.12
5.4.430.0070.02816.07
5.4.420.0100.02116.17
5.4.410.0160.03516.04
5.4.400.0120.04015.87
5.4.390.0140.03516.00
5.4.380.0080.02515.92
5.4.370.0080.04016.01
5.4.360.0100.03615.83
5.4.350.0060.04215.97
5.4.340.0120.03815.91
5.4.330.0070.00712.79
5.4.320.0050.02715.95
5.4.310.0150.03516.00
5.4.300.0080.04015.98
5.4.290.0060.02615.95
5.4.280.0070.02215.97
5.4.270.0080.04015.87
5.4.260.0020.03715.98
5.4.250.0020.04715.97
5.4.240.0110.02515.92
5.4.230.0090.02215.97
5.4.220.0090.02815.98
5.4.210.0070.01916.01
5.4.200.0020.04515.91
5.4.190.0110.02115.96
5.4.180.0100.01716.00
5.4.170.0060.02215.93
5.4.160.0070.02215.97
5.4.150.0090.02615.96
5.4.140.0060.02214.64
5.4.130.0080.01714.59
5.4.120.0090.01514.66
5.4.110.0050.02014.62
5.4.100.0070.03014.64
5.4.90.0070.01814.64
5.4.80.0110.02114.63
5.4.70.0110.01314.67
5.4.60.0050.01814.61
5.4.50.0090.01814.63
5.4.40.0070.01914.64
5.4.30.0080.01814.56
5.4.20.0060.01814.55
5.4.10.0090.01614.61
5.4.00.0060.01814.38
5.3.290.0110.03913.76
5.3.280.0060.04113.70
5.3.270.0040.02613.71
5.3.260.0070.02413.74
5.3.250.0070.02113.72
5.3.240.0090.01813.73
5.3.230.0070.01813.66
5.3.220.0040.02113.72
5.3.210.0040.02113.72
5.3.200.0110.01513.65
5.3.190.0080.01713.70
5.3.180.0060.02013.73
5.3.170.0060.02013.69
5.3.160.0060.03013.74
5.3.150.0090.03113.67
5.3.140.0070.03213.74
5.3.130.0050.02313.65
5.3.120.0070.01913.67
5.3.110.0020.02313.68
5.3.100.0080.01513.44
5.3.90.0030.02013.39
5.3.80.0030.03713.47
5.3.70.0080.01813.40
5.3.60.0030.02513.34
5.3.50.0070.02013.40
5.3.40.0060.02013.31
5.3.30.0020.02113.40
5.3.20.0080.01713.24
5.3.10.0020.02313.18
5.3.00.0080.02813.17
5.2.170.0070.01412.23
5.2.160.0030.02012.23
5.2.150.0050.01512.23
5.2.140.0030.01812.23
5.2.130.0070.02112.23
5.2.120.0000.02012.23
5.2.110.0050.01812.23
5.2.100.0020.01912.23
5.2.90.0060.01612.23
5.2.80.0060.01512.23
5.2.70.0030.01812.23
5.2.60.0060.01512.23
5.2.50.0040.01512.23
5.2.40.0030.01812.23
5.2.30.0040.01612.23
5.2.20.0070.01412.23
5.2.10.0060.01312.23
5.2.00.0020.02012.23
5.1.60.0040.01212.23
5.1.50.0020.02512.23
5.1.40.0090.01312.23
5.1.30.0010.01812.23
5.1.20.0020.01512.23
5.1.10.0050.01012.23
5.1.00.0030.01512.23
5.0.50.0030.02312.23
5.0.40.0010.01612.23
5.0.30.0020.02912.23
5.0.20.0060.01912.23
5.0.10.0040.02312.23
5.0.00.0050.03512.23
4.4.90.0000.01412.23
4.4.80.0060.00812.23
4.4.70.0000.01312.23
4.4.60.0040.00912.23
4.4.50.0000.01312.23
4.4.40.0020.01412.23
4.4.30.0040.00812.23
4.4.20.0010.01012.23
4.4.10.0020.02112.23
4.4.00.0010.02012.23
4.3.110.0000.02112.23
4.3.100.0030.01812.23
4.3.90.0050.01612.23
4.3.80.0030.02112.23
4.3.70.0050.01512.23
4.3.60.0060.01212.23
4.3.50.0030.02012.23
4.3.40.0040.02712.23
4.3.30.0020.01912.23
4.3.20.0000.02312.23
4.3.10.0030.02012.23
4.3.00.0030.01512.23

preferences:
40.96 ms | 400 KiB | 5 Q