3v4l.org

run code in 500+ PHP versions simultaneously
<?php $client = (object) ['id' => 1]; // system(id) is removed $databaseValue = '$client->id; system("id")'; preg_match_all('/(?:\s|^)\$(?:[^\s]+?)(?:[a-z])+(?:->|$)?(?:[a-z]|[A-Z])+/', $databaseValue, $matches); if (!empty($matches)) { $firstVariableOccurance = current(current($matches)); eval("\$value = {$firstVariableOccurance};"); echo "Send command {$value}"; }

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.5.30.0130.00418.70
8.5.20.0090.01121.26
8.5.10.0100.00720.21
8.5.00.0160.00522.96
8.4.180.0140.00819.97
8.4.170.0110.01120.32
8.4.160.0150.00622.24
8.4.150.0070.00517.02
8.4.140.0100.01117.92
8.4.130.0070.00417.89
8.4.120.0120.00720.55
8.4.110.0120.00820.45
8.4.100.0080.01417.90
8.4.90.0100.01118.81
8.4.80.0120.00918.05
8.4.70.0110.01118.26
8.4.60.0110.00918.82
8.4.50.0100.01117.97
8.4.40.0130.00722.21
8.4.30.0130.00720.25
8.4.20.0030.00618.15
8.4.10.0030.00622.09
8.3.300.0110.00920.88
8.3.290.0120.00920.80
8.3.280.0110.00920.43
8.3.270.0130.00816.86
8.3.260.0160.00417.21
8.3.250.0110.00818.80
8.3.240.0130.00716.84
8.3.230.0130.00616.70
8.3.220.0110.00717.29
8.3.210.0080.01116.93
8.3.200.0050.00616.82
8.3.190.0140.00617.11
8.3.180.0120.00816.88
8.3.170.0110.00716.99
8.3.160.0070.01318.47
8.3.150.0150.00417.22
8.3.140.0080.00018.62
8.3.130.0070.00316.62
8.3.120.0120.00420.92
8.3.110.0050.00317.00
8.3.100.0030.00624.06
8.3.90.0070.00326.77
8.3.80.0040.00718.43
8.3.70.0140.00418.68
8.3.60.0140.00418.68
8.3.50.0140.00720.30
8.3.40.0030.01021.89
8.3.30.0070.00719.04
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.300.0130.00722.23
8.2.290.0110.00820.66
8.2.280.0110.00718.80
8.2.270.0050.00318.91
8.2.260.0040.00418.90
8.2.250.0090.00618.50
8.2.240.0040.00818.86
8.2.230.0060.00320.94
8.2.220.0000.00937.54
8.2.210.0080.00026.77
8.2.200.0030.00617.13
8.2.190.0070.01316.75
8.2.180.0150.01525.92
8.2.170.0110.00419.00
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0000.00721.02
8.2.110.0060.00319.38
8.2.100.0060.00617.91
8.2.90.0000.01017.88
8.2.80.0000.00817.97
8.2.70.0030.00517.88
8.2.60.0000.00817.75
8.2.50.0000.00917.98
8.2.40.0040.00419.86
8.2.30.0060.00318.10
8.2.20.0040.00420.35
8.2.10.0040.00418.21
8.2.00.0040.00419.33
8.1.340.0140.00618.00
8.1.330.0110.00822.13
8.1.320.0030.00516.54
8.1.310.0050.00318.30
8.1.300.0090.00016.70
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0060.00322.20
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0090.00019.28
8.1.230.0040.00820.84
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.25
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0060.00317.62
8.1.160.0000.00818.93
8.1.150.0030.00518.80
8.1.140.0000.00717.66
8.1.130.0040.00418.93
8.1.120.0000.00817.63
8.1.110.0030.00617.65
8.1.100.0040.00417.64
8.1.90.0000.00717.52
8.1.80.0030.00617.57
8.1.70.0130.00217.59
8.1.60.0140.00517.65
8.1.50.0140.00317.63
8.1.40.0130.00417.68
8.1.30.0040.00917.69
8.1.20.0060.00617.74
8.1.10.0070.00717.69
8.1.00.0120.00617.55
8.0.300.0030.00520.29
8.0.290.0040.00416.88
8.0.280.0000.00718.39
8.0.270.0080.00017.06
8.0.260.0000.00718.46
8.0.250.0040.00417.18
8.0.240.0040.00417.23
8.0.230.0050.00517.11
8.0.220.0000.00717.00
8.0.210.0140.00017.14
8.0.200.0080.00817.00
8.0.190.0120.00317.14
8.0.180.0160.00017.11
8.0.170.0100.00417.00
8.0.160.0040.01116.93
8.0.150.0110.00517.00
8.0.140.0130.00416.96
8.0.130.0100.00516.94
8.0.120.0120.00317.00
8.0.110.0080.00717.11
8.0.100.0100.00517.00
8.0.90.0150.00016.93
8.0.80.0160.00017.12
8.0.70.0110.00417.03
8.0.60.0050.01117.08
8.0.50.0170.00016.91
8.0.30.0130.00217.10
8.0.20.0130.00317.18
8.0.10.0080.00817.16
7.4.330.0050.00015.55
7.4.320.0030.00316.71
7.4.300.0000.00916.70
7.4.290.0070.01016.79
7.4.280.0120.00416.70
7.4.270.0100.00716.72
7.4.260.0100.00716.73
7.4.250.0170.00016.79
7.4.240.0160.00016.61
7.4.230.0170.00016.71
7.4.220.0120.00416.78
7.4.210.0050.01016.78
7.4.200.0070.00716.69
7.4.190.0110.00416.84
7.4.180.0120.00016.63
7.4.160.0050.00516.72
7.4.150.0070.00416.80
7.4.140.0080.00416.64
7.4.130.0100.00216.54
7.4.120.0080.00416.67
7.4.110.0080.00316.61
7.4.100.0080.00416.66
7.4.90.0070.00416.39
7.4.80.0050.00516.50
7.4.70.0040.00716.45
7.4.60.0080.00416.31
7.4.50.0070.00516.58
7.4.40.0110.00016.52
7.4.30.0090.00316.74
7.4.20.0050.00516.09
7.4.10.0070.00216.42
7.4.00.0090.00016.48

preferences:
50.24 ms | 1240 KiB | 5 Q