3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExampleA { public function __construct(){ echo 'Método Mágico' . PHP_EOL; } public function ExampleA(){ echo 'Construtor descontinuado'; } } class ExampleB { public function ExampleB(){ echo 'Construtor descontinuado' . PHP_EOL; } } $e = new ExampleA; $e = new ExampleB;

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.4.10.0160.00017.47
8.3.140.0060.00917.13
8.3.130.0040.00418.39
8.3.120.0060.00320.76
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0160.00616.38
8.3.60.0120.00918.30
8.3.50.0130.00722.79
8.3.40.0130.00718.71
8.3.30.0100.00318.42
8.3.20.0040.00420.04
8.3.10.0070.00023.63
8.3.00.0080.00019.19
8.2.260.0150.00417.07
8.2.250.0000.01518.56
8.2.240.0060.00318.94
8.2.230.0070.00022.58
8.2.220.0120.00937.54
8.2.210.0080.00026.77
8.2.200.0060.00318.38
8.2.190.0040.01119.95
8.2.180.0090.00618.42
8.2.170.0110.00722.96
8.2.160.0100.01019.03
8.2.150.0060.01025.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00020.75
8.2.110.0050.00520.53
8.2.100.0040.00817.78
8.2.90.0040.00417.97
8.2.80.0040.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00917.93
8.2.50.0000.00918.07
8.2.40.0030.00619.94
8.2.30.0040.00418.00
8.2.20.0050.00317.62
8.2.10.0080.00017.91
8.2.00.0040.00417.99
8.1.310.0080.00018.25
8.1.300.0050.00317.65
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00622.05
8.1.230.0040.00720.92
8.1.220.0050.00317.74
8.1.210.0040.00418.82
8.1.200.0060.00317.11
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0030.00618.47
8.1.160.0020.00518.79
8.1.150.0000.00718.82
8.1.140.0070.00019.51
8.1.130.0070.00017.71
8.1.120.0000.00717.23
8.1.110.0040.00417.37
8.1.100.0070.00017.38
8.1.90.0000.00717.26
8.1.80.0000.00717.39
8.1.70.0000.00717.36
8.1.60.0000.00817.59
8.1.50.0030.00617.52
8.1.40.0000.00817.52
8.1.30.0040.00417.70
8.1.20.0000.00717.64
8.1.10.0060.00317.47
8.1.00.0050.00317.53
8.0.300.0080.00019.89
8.0.290.0090.00016.63
8.0.280.0070.00018.44
8.0.270.0000.00717.32
8.0.260.0030.00317.25
8.0.250.0040.00416.76
8.0.240.0030.00316.91
8.0.230.0040.00416.89
8.0.220.0080.00016.82
8.0.210.0030.00316.73
8.0.200.0040.00416.92
8.0.190.0070.00016.78
8.0.180.0000.00716.87
8.0.170.0000.00716.88
8.0.160.0070.00016.73
8.0.150.0040.00416.87
8.0.140.0030.00316.66
8.0.130.0050.00013.28
8.0.120.0000.00816.85
8.0.110.0000.00716.84
8.0.100.0000.00816.74
8.0.90.0040.00416.82
8.0.80.0060.00916.76
8.0.70.0000.00716.84
8.0.60.0040.00416.72
8.0.50.0030.00516.72
8.0.30.0110.00617.25
8.0.20.0110.01017.41
8.0.10.0080.00016.91
8.0.00.0150.00516.71
7.4.330.0050.00015.08
7.4.320.0030.00316.44
7.4.300.0030.00316.58
7.4.290.0000.00816.50
7.4.280.0030.00516.59
7.4.270.0030.00316.49
7.4.260.0030.00316.63
7.4.250.0000.00716.54
7.4.240.0000.00716.44
7.4.230.0070.00016.63
7.4.220.0110.00816.63
7.4.210.0110.00416.55
7.4.200.0070.00016.62
7.4.160.0030.01316.66
7.4.150.0070.01017.40
7.4.140.0050.01217.86
7.4.130.0090.00816.45
7.4.120.0050.01216.57
7.4.110.0090.00916.67
7.4.100.0090.01016.40
7.4.90.0100.01316.64
7.4.80.0170.00719.39
7.4.70.0120.00316.25
7.4.60.0080.00816.47
7.4.50.0070.00716.36
7.4.40.0080.00816.58
7.4.30.0160.00316.58
7.4.10.0030.01614.89
7.4.00.0070.01015.14
7.3.330.0040.00413.23
7.3.320.0000.00613.32
7.3.310.0000.00916.36
7.3.300.0030.00316.30
7.3.290.0060.00816.27
7.3.280.0090.00716.34
7.3.270.0050.01417.40
7.3.260.0090.00916.44
7.3.250.0120.00716.31
7.3.240.0100.00616.47
7.3.230.0140.00416.47
7.3.210.0030.01216.45
7.3.200.0060.01216.47
7.3.190.0060.00916.35
7.3.180.0140.00316.32
7.3.170.0060.01216.39
7.3.160.0060.01016.42
7.3.130.0100.01014.90
7.3.120.0080.01014.84
7.3.110.0080.01014.88
7.3.100.0090.00814.57
7.3.90.0070.01114.63
7.3.80.0070.00914.77
7.3.70.0030.00814.76
7.3.60.0110.00214.70
7.3.50.0030.01014.82
7.3.40.0060.00814.61
7.3.30.0000.00914.67
7.3.20.0050.00716.63
7.3.10.0050.01016.60
7.3.00.0060.00816.44
7.2.330.0120.00616.73
7.2.320.0070.01016.69
7.2.310.0150.00716.70
7.2.300.0030.01416.66
7.2.290.0100.00616.48
7.2.260.0140.00314.83
7.2.250.0080.01015.07
7.2.240.0090.00614.85
7.2.230.0100.01015.03
7.2.220.0040.01314.71
7.2.210.0090.00514.82
7.2.200.0010.00814.84
7.2.190.0040.01114.87
7.2.180.0040.00814.88
7.2.170.0090.00514.80
7.2.160.0040.01215.04
7.2.150.0100.00316.80
7.2.140.0000.00916.86
7.2.130.0000.01416.99
7.2.120.0070.01116.93
7.2.110.0040.01416.64
7.2.100.0100.00316.80
7.2.90.0100.00616.96
7.2.80.0110.00416.94
7.2.70.0070.00316.73
7.2.60.0060.00816.79
7.2.50.0070.00716.91
7.2.40.0100.00716.74
7.2.30.0060.00616.76
7.2.20.0000.01516.86
7.2.10.0040.01416.91
7.2.00.0030.01118.01
7.1.330.0080.00515.71
7.1.320.0030.01115.66
7.1.310.0030.01015.64
7.1.300.0050.00815.76
7.1.290.0030.00915.60
7.1.280.0030.01015.65
7.1.270.0060.00515.65
7.1.260.0040.00715.66
7.1.250.0060.00915.72
7.1.240.0080.00415.73
7.1.230.0040.00715.68
7.1.220.0000.01415.66
7.1.210.0000.01115.70
7.1.200.0050.00715.64
7.1.190.0000.01215.72
7.1.180.0000.01015.70
7.1.170.0030.01015.86
7.1.160.0060.00315.81
7.1.150.0070.01115.59
7.1.140.0100.00715.64
7.1.130.0100.00715.61
7.1.120.0040.00815.56
7.1.110.0050.00415.47
7.1.100.0050.00616.78
7.1.90.0130.00315.82
7.1.80.0080.00415.49
7.1.70.0030.00716.49
7.1.60.0150.00717.73
7.1.50.0100.01016.24
7.1.40.0060.00615.64
7.1.30.0080.00615.38
7.1.20.0000.01415.43
7.1.10.0050.00315.52
7.1.00.0050.04219.02
7.0.330.0060.00915.23
7.0.320.0040.00815.30
7.0.310.0030.00915.39
7.0.300.0000.01115.22
7.0.290.0050.00515.32
7.0.280.0080.00615.30
7.0.270.0000.01115.21
7.0.260.0030.00715.05
7.0.250.0030.01315.32
7.0.240.0100.00315.07
7.0.230.0000.00815.06
7.0.220.0030.00915.12
7.0.210.0090.00315.45
7.0.200.0220.00914.92
7.0.190.0030.01015.49
7.0.180.0120.00615.32
7.0.170.0060.00315.42
7.0.160.0000.01315.43
7.0.150.0070.00315.10
7.0.140.0080.00515.21
7.0.130.0060.00315.48
7.0.120.0070.00715.10
7.0.110.0030.01215.35
7.0.100.0030.00515.24
7.0.90.0070.00415.14
7.0.80.0060.00615.22
7.0.70.0330.02217.53
7.0.60.0160.04017.61
7.0.50.0170.03317.86
7.0.40.0150.03516.90
7.0.30.0180.03516.89
7.0.20.0160.03316.82
7.0.10.0180.03216.96
7.0.00.0190.03016.92
5.6.400.0000.01014.31
5.6.390.0090.00614.51
5.6.380.0090.00614.50
5.6.370.0090.00314.21
5.6.360.0090.00614.18
5.6.350.0070.00314.65
5.6.340.0100.00313.99
5.6.330.0040.00414.32
5.6.320.0040.01114.31
5.6.310.0000.01413.98
5.6.300.0030.01014.13
5.6.290.0110.00414.42
5.6.280.0070.04017.52
5.6.270.0060.00914.41
5.6.260.0030.00914.36
5.6.250.0080.00614.59
5.6.240.0080.00014.18
5.6.230.0000.01514.08
5.6.220.0200.03217.56
5.6.210.0150.03517.52
5.6.200.0240.03217.70
5.6.190.0070.03717.68
5.6.180.0150.03717.78
5.6.170.0230.03017.80
5.6.160.0180.02917.59
5.6.150.0060.03617.72
5.6.140.0150.02817.69
5.6.130.0100.04317.77
5.6.120.0100.03717.62
5.6.110.0170.02817.61
5.6.100.0080.03817.72
5.6.90.0110.03517.68
5.6.80.0110.03317.30
5.6.70.0120.03017.28
5.6.60.0070.03717.36
5.6.50.0150.02817.23
5.6.40.0110.03117.30
5.6.30.0140.03817.45
5.6.20.0180.03017.33
5.6.10.0150.03017.29
5.6.00.0150.04017.38
5.5.380.0060.00614.46
5.5.370.0060.00314.40
5.5.360.0210.03217.12
5.5.350.0200.04517.46
5.5.340.0250.02717.57
5.5.330.0130.03517.49
5.5.320.0240.03317.52
5.5.310.0170.03517.47
5.5.300.0150.03217.71
5.5.290.0180.03717.75
5.5.280.0100.03717.57
5.5.270.0150.02817.40
5.5.260.0100.03817.63
5.5.250.0120.03017.45
5.5.240.0070.03217.19
5.5.230.0150.03717.06
5.5.220.0160.03317.28
5.5.210.0100.03117.23
5.5.200.0080.04317.25
5.5.190.0190.03917.35
5.5.180.0150.02817.29
5.5.170.0090.00914.27
5.5.160.0120.04517.16
5.5.150.0130.03617.07
5.5.140.0180.03217.15
5.5.130.0120.02817.11
5.5.120.0100.03117.29
5.5.110.0120.02817.26
5.5.100.0200.03017.18
5.5.90.0220.02817.13
5.5.80.0280.03017.10
5.5.70.0230.03717.10
5.5.60.0170.03817.19
5.5.50.0410.02616.93
5.5.40.0100.03517.20
5.5.30.0260.03017.17
5.5.20.0070.03617.09
5.5.10.0160.03017.25
5.5.00.0080.03417.06

preferences:
16.48 ms | 403 KiB | 5 Q