3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyClass { protected $myProperty; public function __construct( $property ) { $this -> myProperty = $property; } public function getPropertyValue() { return $this -> myProperty; } } for( $i = 0; $i<= 100000; $i++ ) { $myClass = new MyClass( 'Property Value' ); echo $myClass -> getPropertyValue(), "\n"; }

Abusive script

This script was stopped while abusing our resources

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.110.0030.00920.94
8.3.100.0250.00724.06
8.3.90.0370.00926.77
8.3.80.0290.00521.70
8.3.70.0320.01222.58
8.3.60.0370.00722.52
8.3.50.0360.00720.51
8.3.40.0340.00622.74
8.3.30.0430.00022.64
8.3.20.0290.00023.50
8.3.10.0300.00324.34
8.3.00.0270.00424.36
8.2.230.0150.00722.58
8.2.220.0160.00837.54
8.2.210.0200.01126.77
8.2.200.0270.00722.53
8.2.190.0340.01422.47
8.2.180.0500.01326.34
8.2.170.0440.00424.87
8.2.160.0420.00524.51
8.2.150.0340.00425.47
8.2.140.0310.00625.71
8.2.130.0190.00723.90
8.2.120.0140.00726.56
8.2.110.0440.00624.42
8.2.100.0390.00922.30
8.2.90.0140.00624.57
8.2.80.0290.00822.37
8.2.70.0270.00722.40
8.2.60.0190.00922.46
8.2.50.0170.01022.43
8.2.40.0220.00923.12
8.2.30.0260.00523.04
8.2.20.0220.00622.38
8.2.10.0240.00722.47
8.2.00.0180.00822.44
8.1.290.0230.00628.80
8.1.280.0310.00226.34
8.1.270.0310.00023.56
8.1.260.0170.00426.56
8.1.250.0250.00627.43
8.1.240.0230.00924.60
8.1.230.0240.00823.77
8.1.220.0190.00622.27
8.1.210.0160.00822.81
8.1.200.0180.00522.06
8.1.190.0120.00522.00
8.1.180.0180.00722.43
8.1.170.0140.01122.57
8.1.160.0180.00822.83
8.1.150.0200.00522.83
8.1.140.0130.00722.23
8.1.130.0200.00422.92
8.1.120.0110.00322.07
8.1.110.0210.00522.13
8.1.100.0220.00622.08
8.1.90.0230.00522.13
8.1.80.0160.01122.06
8.1.70.0120.00822.12
8.1.60.0100.00722.23
8.1.50.0160.00722.16
8.1.40.0200.00922.17
8.1.30.0140.00622.17
8.1.20.0180.00722.23
8.1.10.0170.00422.20
8.1.00.0190.00822.12
8.0.300.0190.01023.25
8.0.290.0300.00521.70
8.0.280.0180.00722.54
8.0.270.0230.00821.98
8.0.260.0160.00522.58
8.0.250.0290.00621.82
8.0.240.0210.01021.82
8.0.230.0220.00321.83
8.0.220.0150.01221.73
8.0.210.0230.00821.71
8.0.200.0220.00621.78
8.0.190.0260.00721.82
8.0.180.0180.01421.76
8.0.170.0260.01021.79
8.0.160.0170.01321.70
8.0.150.0220.00021.66
8.0.140.0270.00821.76
8.0.130.0140.00920.03
8.0.120.0160.00421.70
8.0.110.0110.01021.69
8.0.100.0170.01421.72
8.0.90.0140.00621.66
8.0.80.0390.02121.71
8.0.70.0160.00421.74
8.0.60.0370.00821.65
8.0.50.0180.01021.68
8.0.30.0440.02419.43
8.0.20.0500.01918.96
8.0.10.0140.01121.73
8.0.00.0360.01221.59
7.4.330.0390.00321.16
7.4.320.0300.00821.54
7.4.300.0280.00821.58
7.4.290.0170.00321.57
7.4.280.0160.00721.52
7.4.270.0180.00821.62
7.4.260.0190.00721.62
7.4.250.0200.00921.51
7.4.240.0250.00821.63
7.4.230.0330.00621.63
7.4.220.0560.03121.63
7.4.210.0330.01721.61
7.4.200.0090.00921.48
7.4.190.0120.00826.77
7.4.180.0350.01826.77
7.4.160.0410.02319.82
7.4.150.0380.01822.08
7.4.140.0520.02719.64
7.4.130.0280.02121.49
7.4.120.0450.02118.50
7.4.110.0550.01821.58
7.4.100.0540.01821.58
7.4.90.0810.04421.62
7.4.80.0630.02923.08
7.4.70.0330.02221.62
7.4.60.0350.01521.61
7.4.50.0190.00321.58
7.4.40.0450.00621.68
7.4.30.0460.01621.66
7.4.20.0250.00826.77
7.4.10.0370.00426.77
7.4.00.0300.01120.78
7.3.330.0230.00620.02
7.3.320.0310.00619.94
7.3.310.0220.00421.49
7.3.300.0250.00621.50
7.3.290.0280.02721.46
7.3.280.0310.03117.05
7.3.270.0440.01922.08
7.3.260.0440.02619.80
7.3.250.0380.01518.90
7.3.240.0500.02318.92
7.3.230.0660.01121.49
7.3.220.0500.00426.77
7.3.210.0410.01821.51
7.3.200.0400.01221.53
7.3.190.0380.01721.46
7.3.180.0520.02421.59
7.3.170.0410.01621.62
7.3.160.0310.02221.59
7.3.150.0380.01426.77
7.3.140.0500.00926.77
7.3.130.0290.00826.77
7.3.120.0280.01226.77
7.3.110.0360.00426.77
7.3.100.0290.00926.77
7.3.90.0280.00326.77
7.3.80.0280.01426.77
7.3.70.0260.00926.77
7.3.60.0280.00626.77
7.3.50.0350.00026.77
7.3.40.0210.00226.77
7.3.30.0310.00426.77
7.3.20.0300.00626.77
7.3.10.0250.01126.77
7.3.00.0400.00626.77
7.2.340.0320.00826.77
7.2.330.0490.01621.63
7.2.320.0350.01621.66
7.2.310.0420.01121.67
7.2.300.0320.02521.64
7.2.290.0350.01921.79
7.2.280.0270.00726.77
7.2.270.0250.00026.77
7.2.60.0200.00516.48
7.2.50.0140.01116.63
7.1.200.0160.00815.46
7.1.100.0120.02117.80
7.1.90.0220.01518.07
7.1.80.0120.01217.76
7.1.70.0170.01816.88
7.1.60.0390.01034.85
7.1.50.0280.01334.68
7.1.40.0360.01234.40
7.1.30.0290.01734.60
7.1.20.3110.01332.78
7.1.10.0100.01916.48
7.1.00.0140.01816.36
7.0.240.0190.01417.66
7.0.230.0140.01717.87
7.0.220.0170.01217.78
7.0.210.0050.01516.70
7.0.200.0120.01516.79
7.0.190.0160.01616.69
7.0.180.0090.01716.21
7.0.170.2720.01514.33
7.0.160.3000.01614.36
7.0.150.0190.01316.34
7.0.140.0100.02116.36
7.0.130.0160.01116.73
7.0.120.0170.01116.49
7.0.110.3380.01014.63
7.0.100.0110.01416.27
7.0.90.0080.01716.52
7.0.80.0180.01816.47
7.0.70.3010.01216.52
7.0.60.2510.01914.26
7.0.50.2570.01316.43
7.0.40.0080.02016.56
7.0.30.0210.01116.68
7.0.20.0230.01616.33
7.0.10.2900.02014.55
7.0.00.1910.01614.57

preferences:
126.83 ms | 8978 KiB | 5 Q