3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Nigger { function __construct() { if(defined(__METHOD__)) { echo __METHOD__; } else { throw new Exception('Const not defined :('); } } } $cottonCollector = new Nigger();

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.0100.01016.50
8.3.50.0210.00817.42
8.3.40.0080.00618.79
8.3.30.0100.00318.71
8.3.20.0080.00018.85
8.3.10.0030.00718.63
8.3.00.0000.00819.26
8.2.180.0070.00718.43
8.2.170.0070.00722.96
8.2.160.0130.00620.43
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0140.00026.16
8.2.120.0040.00420.58
8.2.110.0060.00321.03
8.2.100.0060.00617.72
8.2.90.0030.00619.20
8.2.80.0040.00419.20
8.2.70.0060.00317.49
8.2.60.0030.00617.91
8.2.50.0000.00818.07
8.2.40.0000.00718.03
8.2.30.0040.00418.02
8.2.20.0030.00617.63
8.2.10.0070.00017.78
8.2.00.0040.00417.79
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00922.42
8.1.230.0080.00321.04
8.1.220.0000.00817.74
8.1.210.0040.00418.96
8.1.200.0030.00617.10
8.1.190.0040.00417.51
8.1.180.0040.00418.10
8.1.170.0080.00018.76
8.1.160.0000.00718.79
8.1.150.0040.00418.61
8.1.140.0050.00217.42
8.1.130.0030.00317.63
8.1.120.0050.00317.38
8.1.110.0000.00717.38
8.1.100.0050.00217.39
8.1.90.0040.00417.30
8.1.80.0000.00717.42
8.1.70.0030.00317.39
8.1.60.0080.00017.50
8.1.50.0080.00017.30
8.1.40.0030.00517.28
8.1.30.0040.00417.53
8.1.20.0040.00417.55
8.1.10.0000.00817.51
8.1.00.0030.00617.42
8.0.300.0000.00819.98
8.0.290.0090.00016.58
8.0.280.0050.00218.38
8.0.270.0000.00717.23
8.0.260.0000.00716.72
8.0.250.0070.00016.99
8.0.240.0070.00016.94
8.0.230.0070.00016.96
8.0.220.0030.00516.86
8.0.210.0030.00616.88
8.0.200.0040.00416.99
8.0.190.0040.00316.92
8.0.180.0000.00716.88
8.0.170.0040.00416.88
8.0.160.0000.00716.90
8.0.150.0000.00816.77
8.0.140.0070.00316.91
8.0.130.0000.00613.43
8.0.120.0000.00716.79
8.0.110.0070.00016.74
8.0.100.0030.00516.95
8.0.90.0030.00516.80
8.0.80.0080.00816.88
8.0.70.0070.00016.99
8.0.60.0000.00716.98
8.0.50.0000.00716.98
8.0.30.0070.01116.97
8.0.20.0050.01317.19
8.0.10.0000.00717.05
8.0.00.0100.01116.72
7.4.330.0000.00512.85
7.4.320.0000.00616.54
7.4.300.0000.00716.51
7.4.290.0000.01016.44
7.4.280.0040.00416.33
7.4.270.0030.00316.57
7.4.260.0000.00513.23
7.4.250.0000.00816.52
7.4.240.0000.00716.34
7.4.230.0000.00716.51
7.4.220.0190.00316.56
7.4.210.0080.00616.51
7.4.200.0030.00316.37
7.4.190.0070.00016.66
7.4.160.0060.00916.57
7.4.150.0040.01416.46
7.4.140.0050.01316.45
7.4.130.0120.00516.53
7.4.120.0100.00716.49
7.4.110.0060.01316.48
7.4.100.0120.00616.34
7.4.90.0130.00316.43
7.4.80.0030.01716.42
7.4.70.0120.00616.35
7.4.60.0130.00316.41
7.4.50.0000.00716.45
7.4.40.0060.00916.68
7.4.30.0000.01616.38
7.4.00.0070.00715.11
7.3.330.0030.00313.38
7.3.320.0040.00413.20
7.3.310.0030.00316.46
7.3.300.0030.00316.27
7.3.290.0070.00716.33
7.3.280.0080.00816.33
7.3.270.0130.00616.36
7.3.260.0080.01216.64
7.3.250.0120.00716.38
7.3.240.0100.01016.40
7.3.230.0100.00716.40
7.3.210.0090.00916.38
7.3.200.0070.01519.39
7.3.190.0150.00016.57
7.3.180.0060.00916.39
7.3.170.0140.00716.33
7.3.160.0040.01616.49
7.3.120.0000.01715.04
7.2.330.0070.01016.54
7.2.320.0000.02216.68
7.2.310.0130.01016.38
7.2.300.0100.00616.54
7.2.290.0060.01016.34
7.2.60.0000.01416.73
7.2.00.0040.00819.44
7.1.200.0030.00915.20
7.1.100.0040.01217.80
7.1.70.0000.01517.05
7.1.60.0130.01019.40
7.1.50.0000.01216.86
7.1.00.0030.07322.42
7.0.200.0160.01014.68
7.0.140.0000.07721.99
7.0.120.0000.07722.04
7.0.60.0170.04319.79
7.0.50.0030.04017.82
7.0.40.0130.08720.13
7.0.30.0330.07320.13
7.0.20.0230.03720.26
7.0.10.0130.08020.24
7.0.00.0170.07720.07
5.6.280.0000.07720.92
5.6.210.0200.06720.57
5.6.200.0000.06718.16
5.6.190.0100.08020.64
5.6.180.0170.04020.50
5.6.170.0300.05320.64
5.6.160.0070.04020.61
5.6.150.0030.08318.14
5.6.140.0070.08018.27
5.6.130.0070.05718.15
5.6.120.0100.05020.98
5.6.110.0000.08020.99
5.6.100.0070.08320.98
5.6.90.0100.04721.12
5.6.80.0070.08020.37
5.5.350.0300.07720.52
5.5.340.0100.04018.08
5.5.330.0070.07720.27
5.5.320.0170.08720.24
5.5.310.0200.04720.30
5.5.300.0030.05018.07
5.5.290.0070.03717.92
5.5.280.0100.06320.73
5.5.270.0030.08720.77
5.5.260.0130.06720.86
5.5.250.0230.07020.71
5.5.240.0270.07720.29
5.4.450.3130.03719.45
5.4.440.3970.03719.52
5.4.430.3800.03319.25
5.4.420.3930.03719.45
5.4.410.4370.03719.38
5.4.400.3400.03719.11
5.4.390.3870.04319.18
5.4.380.3830.04319.22
5.4.370.4330.03719.22
5.4.360.3930.03319.16
5.4.350.4030.04019.13
5.4.340.3830.04319.16
5.4.320.3770.03719.19
5.4.310.3770.02719.25
5.4.300.3500.03719.13
5.4.290.3800.03319.13
5.4.280.3670.03019.15
5.4.270.3830.03719.13
5.4.260.3800.03718.96
5.4.250.4700.04319.17
5.4.240.3830.03719.03
5.4.230.4170.04019.14
5.4.220.3900.03719.14
5.4.210.3600.03719.19
5.4.200.3970.03319.01
5.4.190.3730.03019.09
5.4.180.3270.04018.95
5.4.170.3930.03319.18
5.4.160.4030.04019.21
5.4.150.3870.04019.12
5.4.140.3730.04016.50
5.4.130.3270.02716.44
5.4.120.3800.03016.40
5.4.110.4000.03716.52
5.4.100.3830.04016.56
5.4.90.3830.03716.25
5.4.80.3670.02716.46
5.4.70.3600.04016.46
5.4.60.3930.03016.46
5.4.50.3730.03316.49
5.4.40.3930.03016.51
5.4.30.3870.03316.45
5.4.20.3970.03016.45
5.4.10.3930.03716.61
5.4.00.3870.03715.90
5.3.290.3400.04014.82
5.3.280.3870.04314.64
5.3.270.4270.03314.61
5.3.260.3600.04014.61
5.3.250.3800.04014.66
5.3.240.3530.04014.49
5.3.230.3400.03714.51
5.3.220.3870.04014.71
5.3.210.3600.04014.60
5.3.200.3800.03314.71
5.3.190.3500.03714.60
5.3.180.3700.04014.61
5.3.170.3770.02714.59
5.3.160.3870.03714.57
5.3.150.3700.03714.71
5.3.140.3970.03714.55
5.3.130.3570.04014.54
5.3.120.3730.03714.55
5.3.110.3900.03014.46
5.3.100.3670.03714.09
5.3.90.4000.04714.05
5.3.80.3830.03713.98
5.3.70.3630.04014.02
5.3.60.3930.03314.05
5.3.50.3470.03313.95
5.3.40.3670.04013.87
5.3.30.5370.03713.92
5.3.20.4330.03713.74
5.3.10.4530.04013.70
5.3.00.4030.03313.59
5.2.170.3330.03311.19
5.2.160.3300.03011.11
5.2.150.3100.03011.14
5.2.140.3830.03311.15
5.2.130.3530.03311.12
5.2.120.4000.02711.18
5.2.110.3900.02711.17
5.2.100.3900.03311.05
5.2.90.3930.03011.00
5.2.80.3570.03011.09
5.2.70.3800.03011.07
5.2.60.3570.02711.10
5.2.50.3770.03011.17
5.2.40.3170.03010.89
5.2.30.3230.03010.91
5.2.20.3170.02710.92
5.2.10.0070.04310.79
5.2.00.0100.03010.79
5.1.60.0000.03010.05
5.1.50.0770.02710.15
5.1.40.2830.0239.97
5.1.30.3270.02310.39
5.1.20.3230.02710.31
5.1.10.3170.03310.06
5.1.00.3200.02310.22
5.0.50.1700.0208.51
5.0.40.1500.0238.32
5.0.30.1400.0338.23
5.0.20.1470.0178.26
5.0.10.1500.0178.23
5.0.00.1730.0308.14
4.4.90.1700.0175.89
4.4.80.1830.0105.89
4.4.70.1400.0135.92
4.4.60.0030.0135.88
4.4.50.0030.0335.86
4.4.40.0000.0275.82
4.4.30.1430.0135.84
4.4.20.1530.0175.88
4.4.10.1430.0175.94
4.4.00.1770.0305.84
4.3.110.1830.0175.71
4.3.100.1870.0135.82
4.3.90.1770.0135.72
4.3.80.1670.0275.68
4.3.70.1770.0175.70
4.3.60.1430.0175.79
4.3.50.1470.0135.67
4.3.40.1430.0275.73
4.3.30.0870.0205.62
4.3.20.1000.0205.62
4.3.10.0930.0205.62
4.3.00.0830.0135.62

preferences:
43.38 ms | 401 KiB | 5 Q